home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 1999 November / SGI IRIX 6.5 Applications 1999 November.iso / dev / insight_dev.idb / usr / share / ebt / include / dtl.h.z / dtl.h
Encoding:
C/C++ Source or Header  |  1998-10-28  |  94.0 KB  |  6,271 lines

  1. /** DTL/dtl.h
  2. Copyright (c) 1990-1997, Inso Corporation
  3. All Rights Reserved.
  4. This work contains confidential trade secrets of Inso.  
  5. Use, examination, copying, transfer and disclosure to others
  6. are prohibited, except with the express written agreement of Inso.
  7.  
  8. This file is the public header file for the DynaText Libary.
  9. **/
  10.  
  11.  
  12. #ifndef DTL_HEADER
  13. #define DTL_HEADER
  14.  
  15. /* $Id: dtl.h 1.142.1.2 1997/07/28 17:40:57 sgadepalli Exp $ */
  16. /* $Log: dtl.h $
  17.  * Revision 1.142.1.2  1997/07/28  17:40:57  sgadepalli
  18.  * DynaText3.1.1: : Updating DTL_VERSION to 3.11 & DTL__LIBRARY_MINOR_VERSION to 1
  19.  *
  20.  * Revision 1.142.1.1  1997/07/13  16:31:13  sgadepalli
  21.  * DynaText3.1.1:EBTei17091: Migrated fixes from 1.145 to 1.142
  22.  *
  23.  * Revision 1.142  1997/01/15  13:18:36  agk
  24.  * Added DTLinit()
  25.  *
  26.  * Revision 1.141  1997/01/10  17:41:23  agk
  27.  * added DTLgetIniFilePath(), DTLgetExePath() and DTLfree()
  28.  *
  29.  * Revision 1.140  1997/01/08  22:04:59  mdd
  30.  * added new BOOK_ANNOTS_LOADED callback and some new flags for calls
  31.  * to newBook, as well as two new variables for background annot loading
  32.  * and exporting XML
  33.  *
  34.  * Revision 1.139  1997/01/08  15:42:48  agk
  35.  * fixed to compile on Windows.
  36.  * Note that OS_PASCAL is needed for all DTL functions.
  37.  *
  38.  * Revision 1.138  1996/12/13  20:16:21  cjh
  39.  * Added DTL__APPLICATION_PRINT_PAGE_BREAK_CALLBACK.
  40.  * Also added DTLflushStyleSheetCache, but ignore that for now.
  41.  *
  42.  * Revision 1.137  1996/10/29  15:20:14  mdd
  43.  * changed the DTL variable definitions to lower case in order to
  44.  * be consistent with SRTY
  45.  *
  46.  * Revision 1.136  1996/09/18  22:42:27  cjh
  47.  * Added support for DTL__APP_PRIVATE_COLORMAP flag.
  48.  *
  49.  * Revision 1.135  1996/07/23  00:23:19  cjh
  50.  * Implemented DTL__APPLICATION_SELECTION_COERCION_CALLBACK to allow
  51.  * customers (SGI) to fold, spindle and mutilate the text that is
  52.  * being pasted.
  53.  *
  54.  * Revision 1.134  1996/07/22  20:44:04  cjn
  55.  * fix for EBTei12699.  Now error dialogs can be suppressed using
  56.  * a DTLvariable.
  57.  *
  58.  * Revision 1.133  1996/07/22  19:53:47  cjh
  59.  * Added DTL__SUPPRESS_CLEANUP_VARIABLE.
  60.  * Also moved #include of <ebttypes.h> to prevent typedef Boolean
  61.  * conflict w/ Xt for SIT customers.
  62.  *
  63.  * Revision 1.132  1996/07/19  21:34:28  mdd
  64.  * added two variable constants
  65.  *
  66.  * Revision 1.131  1996/07/18  20:06:40  mdd
  67.  * added DTLviewSetTitle
  68.  *
  69.  * Revision 1.130  1996/07/15  16:49:52  ewd
  70.  * all char* args to DTLnewContextServer must be const
  71.  *
  72.  * Revision 1.129  1996/07/12  18:42:54  ewd
  73.  * add DTL__SAVE_ALL_OPTIONS (= -1)
  74.  * forces a save-to-disk of all option prefs.
  75.  *
  76.  * Revision 1.128  1996/06/10  16:46:47  mdd
  77.  * removed extra param in DTLmultibyeMaxPerChar
  78.  *
  79.  * Revision 1.127  1996/06/09  17:32:21  mdd
  80.  * added public INI file constants
  81.  * /
  82.  *
  83.  * Revision 1.126  1996/06/07  15:09:35  cjh
  84.  * Added DTL{toc}ViewReloadStyleSheet APIs. Woo!
  85.  *
  86.  * Revision 1.125  1996/06/06  16:33:18  ewd
  87.  * add DTLunicodeLength(), DTLnativeMaxPerChar(), DTLmultibyteMaxPerChar()
  88.  * also fix typo warning in previous checkin
  89.  *
  90.  * Revision 1.124  1996/06/06  13:32:18  agk
  91.  * Updated the menu stuff to match all the new menus that
  92.  * Glenn changed a while back.
  93.  * Reviewed by CJN
  94.  *
  95.  * Revision 1.123  1996/05/07  15:36:06  cjh
  96.  * Added new routine, DTLsetQueryFeedbackMode, to select the query mode
  97.  * (single- or multiple-hit) for all open views.
  98.  *
  99.  * Revision 1.122  1996/05/06  14:24:14  cjn
  100.  * add protection for mdepend.
  101.  *
  102.  * Revision 1.121  1996/05/01  21:55:20  glf
  103.  * Added new application DTL flag: DTL__APP_NO_INITIAL_COLWIN to
  104.  * allow window's apps to specify on the command line that dtext should
  105.  * not create the initial collection window.  This has meaning on win32
  106.  * only, as of now, because I think we must show the libwin on unix.
  107.  *
  108.  * Revision 1.120  1996/04/23  23:18:01  glf
  109.  * Added new DTL view flag: DTL__DISABLE_SGML_EXPORT. This will be
  110.  * forwarded to the Ftwin object, who will then disable all SGML
  111.  * viewing and exporting (Copy SGML, Export SGML, Show Tags, etc.)
  112.  *
  113.  * Revision 1.119  1996/04/23  16:32:10  mdd
  114.  * added compile time check for mutual exclusivity of DTL__<platform>_DEFS
  115.  * define.
  116.  *
  117.  * Revision 1.118  1996/04/16  20:03:44  cjh
  118.  * Added DTL__VIEW_MODE_SINGLE_HIT and _MULTIPLE_HITS.
  119.  *
  120.  * Revision 1.117  1996/04/10  17:38:38  cjh
  121.  * EBTei09084 - enable DTLzoomView to zoom TOC, and added
  122.  * DTLzoomTocView.
  123.  *
  124.  * Revision 1.116  1996/04/01  15:21:34  cjh
  125.  * Added DTLgetFullTag and DTLwGetFullTag back - don't know
  126.  * how they left, to be honest...
  127.  *
  128.  * Revision 1.115  1996/03/16  02:38:59  cjh
  129.  * Number of fix-ups; ensured all functions are #ifdef use_prototypes,
  130.  * removed spaces after function names to ensure plglink.awk can find
  131.  * them, etc.
  132.  *
  133.  * Revision 1.114  1996/03/13  05:41:06  cjh
  134.  *     Implemented DTLaddwPropertyValueFunction - a new, much improved
  135.  *     interface for adding customs PVFs. It is wide, and it also uses
  136.  *     thread-safe techniques for retrieving the DtlContext and DtlBook
  137.  *     associated with the PVF evaluation (no more global DtlContextIds!),
  138.  *     adds a user_data and is generally just a Good Thing.
  139.  *
  140.  * Revision 1.113  1996/02/29  22:52:43  cjh
  141.  * Braino - named a function twice
  142.  *
  143.  * Revision 1.112  1996/02/29  15:58:29  glf
  144.  * Added needed DTL_EXPORT to declarations of new DTLNODE functions
  145.  * (thanks to cmh!)
  146.  *
  147.  * Revision 1.111  1996/02/16  23:44:34  cjh
  148.  *     Added support for Viewer's chunky views; changed DTL flag
  149.  *     to DTL__CHUNKY_VIEW rather than DTL__X_CHUNKY_VIEW.
  150.  *
  151.  * Revision 1.110  1996/02/16  00:41:09  mdd
  152.  * added some spaces so the plglink awk script would not choke
  153.  *
  154.  * Revision 1.109  1996/02/15  02:41:19  cjh
  155.  *     Added support for DTL__VIEW_PAINT_COMPLETE_CALLBACK for SGI.
  156.  *
  157.  * Revision 1.108  1996/02/15  02:12:21  cjh
  158.  * Added prototypes for DTLNODExxx functions and associated enum.
  159.  *
  160.  * Revision 1.107  1996/02/14  23:02:16  dnc
  161.  * added new coord transform routines for hotspot coords.
  162.  *
  163.  * Revision 1.106  1996/02/09  00:25:51  dnc
  164.  * added routines for graphics coordinate transformations.
  165.  *
  166.  * Revision 1.105  1996/01/30  07:25:15  glf
  167.  * Added a new item to the DtlGui struct: int nCmdShow. This allows a
  168.  * SIT app via DTLnewContextFromGUI to control the appearance of the
  169.  * desktop when first shown.  This was a long-standing defect.
  170.  *
  171.  * Revision 1.104  1996/01/19  19:58:27  cjh
  172.  * Added DTL__PRINT_NODIALOG flag.
  173.  *
  174.  * Revision 1.103  1996/01/04  12:07:17  agk
  175.  * added DTL_EXPORT to the rest of the functions
  176.  * initialy I replaced all OS_EXPORT with DTL_EXPORT, but it
  177.  * turned out that not all functions used OS_EXPORT
  178.  * */
  179.  
  180. /** Includes
  181. stdio: Standard input and output
  182. X11/Intrinsic.h: X Definitions
  183. **/
  184.  
  185. #define DTL_VERSION     3.11
  186.  
  187. /* DynaText Toolkit Library version constants */
  188. #define DTL__LIBRARY_MAJOR_VERSION    11
  189. #define DTL__LIBRARY_MINOR_VERSION    1
  190.  
  191.  
  192. #ifdef DTL__FULL_TOOLKIT
  193. #ifndef DTL__SIT_DEFS
  194. #define DTL__SIT_DEFS
  195. #endif /* DTL__SIT_DEFS */
  196. #endif /* DTL__FULL_TOOLKIT */
  197.  
  198. /*
  199. Compile time check for DTL__<platform>_DEFS.
  200. They are mutually exclusive, so cause an error
  201. if two are defined.
  202. */
  203. #ifdef DTL__X_DEFS
  204. #ifdef DTL__WINDOWS_DEFS
  205. #ifndef MDEPEND
  206. #error
  207. #endif /* MDEPEND */
  208. #endif /* DTL__WINDOWS_DEFS */
  209. #ifdef DTL__MAC_DEFS
  210. #ifndef MDEPEND
  211. #error
  212. #endif /* MDEPEND */
  213. #endif /* DTL__MAC_DEFS */
  214. #endif /* DTL__X_DEFS */
  215.  
  216. #ifdef DTL__WINDOWS_DEFS
  217. #ifdef DTL__MAC_DEFS
  218. #ifndef MDEPEND
  219. #error
  220. #endif /* MDEPEND */
  221. #endif /* DTL__MAC_DEFS */
  222. #endif /* DTL__WINDOWS_DEFS */
  223.  
  224. #ifndef MDEPEND
  225. #include <stdio.h>
  226.  
  227. #ifdef DTL__X_DEFS
  228. #include <X11/Intrinsic.h>
  229. #endif /* DTL__X_DEFS */
  230.  
  231. #ifdef DTL__WINDOWS_DEFS
  232. #include <windows.h>
  233. #endif /* DTL__WINDOWS_DEFS */
  234.  
  235. #endif /* MDEPEND */
  236.  
  237. #include <ebttypes.h>
  238.  
  239.  
  240. /** Compiler Definitions
  241. We quickly try to determine two characteristics about our
  242. compiler:
  243. 1) Should we be using prototypes?
  244. 2) Can we use the void * datatype?
  245. **/
  246.  
  247. #ifndef OS_HEADER
  248.  
  249. #ifndef DTL__NO_PROTOTYPES
  250. #define use_prototypes
  251. #define use_void
  252. #endif /* DTL__NO_PROTOTYPES */
  253.  
  254.  
  255. /** Standard Datatypes
  256. Extract:
  257. We create some standard datatypes here:
  258.    Up: universal pointer
  259. **/
  260.  
  261. #ifdef use_void
  262. typedef void * Up;
  263. #else
  264. typedef char * Up;
  265. #endif /* use_void */
  266.  
  267.  
  268. /** OS Constants
  269. **/
  270.  
  271. #if defined(__cplusplus) || defined(__STDC__)
  272. #define OS_CONST const
  273. #else
  274. #define OS_CONST 
  275. #endif
  276.  
  277. #if defined(DTL__WINDOWS_DEFS)
  278. #define OS_EXPORT    __declspec(dllexport)
  279. #define OS_IMPORT    __declspec(dllimport)
  280. #else
  281. #define OS_EXPORT
  282. #define OS_IMPORT
  283. #endif
  284.  
  285. #if defined(DTL__WINDOWS_DEFS)
  286. #define OS_PASCAL     __stdcall
  287. #define OS_PASCALCB     __stdcall
  288. #elif defined(DTL__MAC_DEFS)
  289. #define OS_PASCAL     pascal
  290. #define OS_PASCALCB     CALLBACK
  291. #else
  292. #define OS_PASCAL 
  293. #define OS_PASCALCB 
  294. #endif
  295.  
  296. #define OS_CDECL     
  297. #define OS_CDECLCB 
  298.  
  299. #endif /* OS_HEADER */
  300.  
  301. /***************************************************************/
  302. /* Plugin users must define DTL__PLUGIN before including DTL.H */
  303. /***************************************************************/
  304. #ifdef DTL__PLUGIN
  305.  
  306. #define DTL_EXPORT
  307.  
  308. #else
  309.  
  310. #ifdef DTL__WINDOWS_DLL
  311. #define DTL_EXPORT OS_EXPORT
  312. #else
  313. #define DTL_EXPORT OS_IMPORT
  314. #endif
  315.  
  316. #endif
  317. /***************************************************************/
  318.  
  319.  
  320. /** More Standard Datatypes
  321. DTL__STRING_LENGTH: length of some API strings.  
  322. DTL__HUGE_LENGTH: huge string length.
  323. **/
  324.  
  325.  
  326. #define DTL__STRING_LENGTH    256
  327. #define DTL__HUGE_LENGTH    1024
  328.  
  329.  
  330.  
  331. /** Application Return Codes 
  332. Doc:
  333.    1) An enumeration of function return error codes.
  334.    2) An enumeration of regular return codes.
  335. **/
  336.  
  337. enum {
  338.    /*** application ***/
  339.    DTL__ERROR = -1,
  340.    DTL__SUCCESS = 0,
  341.    DTL__INITIALIZATION_ERROR,
  342.    DTL__GRAPHICS_ERROR,
  343.    DTL__BAD_WINDOW_ERROR,
  344.    DTL__MEMORY_ERROR,
  345.  
  346.    /*** book ***/
  347.    DTL__AUTHORIZATION_ERROR,
  348.    DTL__BOOK_READING_ERROR,
  349.    DTL__BOOK_ALREADY_OPEN_ERROR,
  350.    DTL__INDEX_READING_ERROR,
  351.  
  352.    /*** view ***/
  353.    DTL__ELEMENT_ID_ERROR,
  354.    DTL__STYLESHEET_ERROR,
  355.  
  356.    /*** query ***/
  357.    DTL__STOP_LIST_ERROR,
  358.    DTL__QUERY_ERROR,
  359.    DTL__STOP_LIST_NO_MATCH_ERROR,
  360.  
  361.    /*** other ***/
  362.    DTL__NO_MATCH_ERROR,
  363.  
  364.    /*** collection window ***/
  365.    DTL__OVERFLOW_ERROR,
  366.  
  367.    /*** API misusage ***/
  368.    DTL__BAD_ARGUMENTS,
  369.    DTL__MENU_ITEM_NOT_CHECKABLE
  370. };
  371.  
  372. enum {
  373.    DTL__SEQUENCE_RUNNING,
  374.    DTL__SEQUENCE_FINISHED
  375. };
  376.  
  377. /** Dtl Callback Return Values
  378. DTL__CALLBACK_RETURN_DISABLE:
  379.    disable item (grey it out)
  380. DTL__CALLBACK_RETURN_REMOVE:
  381.    remove item (get rid of it altogether)
  382. DTL__CALLBACK_RETURN_SHOW:
  383.    show item, keep item as it was
  384. **/
  385.  
  386. enum {
  387.    DTL__CALLBACK_RETURN_DISABLE,
  388.    DTL__CALLBACK_RETURN_REMOVE,
  389.    DTL__CALLBACK_RETURN_SHOW
  390. };
  391.  
  392.  
  393. /** Dtl Options
  394. Dtl Options: These can be passed to DTLsetOption() and DTLgetOption().
  395.              See DTLsetOption() for further explanation.
  396. **/
  397.  
  398. #define DTL__SAVE_ALL_OPTIONS -1
  399. enum {
  400.    DTL__PRINT_FILE_OPTION = 0,
  401.    DTL__QUERY_FEEDBACK_OPTION,
  402.    DTL__EXACT_WITH_ACCENT_OPTION,
  403.    DTL__EXACT_WITHOUT_ACCENT_OPTION,
  404.    DTL__COPY_MODE_OPTION,
  405.    DTL__SPOOLER_OPTION,
  406.    DTL__HELP_BOOK_NAME_OPTION,
  407.    DTL__NUMBER_OPTIONS
  408. };
  409.  
  410.  
  411. /** Dtl Variables
  412. Dtl Variable: These are some standard values that can be used with
  413.               DTLsetVariable() and DTLgetVariable(). See DTLsetVariable()
  414.               for further explanation.
  415. **/
  416.  
  417. #define DTL__DATA_DIR_VARIABLE                "data_dir"
  418. #define DTL__USER_CATALOGS_VARIABLE           "user_catalogs"
  419. #define DTL__SORT_COLLS_VARIABLE              "sort_colls"
  420. #define DTL__CONFIG_FILE_VARIABLE             "config_file"
  421. #define DTL__INLINE_CACHE_VARIABLE            "inline_cache"
  422. #define DTL__COLL_CACHE_VARIABLE              "coll_cache"
  423. #define DTL__LIBRARY_PATH_VARIABLE            "library_path"
  424. #define DTL__REGISTRY_VARIABLE                "registry"
  425. #define DTL__SUPPRESS_CLEANUP_VARIABLE        "suppress_cleanup"
  426. #define DTL__SUPPRESS_ERROR_DIALOG_VARIABLE   "suppress_error_dialog"
  427. #define DTL__BACKGROUND_ANNOTATION_VARIABLE   "background_annots"
  428. #define DTL__EXPORT_XML_VARIABLE              "export_xml"
  429.  
  430. /** Application Types
  431. Doc:
  432. DTL__COPY...: 
  433.    The different copy modes allow you to copy data
  434.    from the browser and toc in all of the possible ways.
  435.  
  436. DTL__COPY_BASIC:
  437.    Copies just the text.
  438. DTL__COPY_SGML:
  439.    Copies the sgml.
  440. DTL__COPY_DERIVED:
  441.    Copies the text as rendererd, with text-before/after and
  442.    line breaks as you see them.
  443. DTL__COPY_SGML_DERIVED:
  444.    Same as COPY_DERIVED, but also copies sgml.
  445. DTL__COPY_LOCATION:
  446.    Copies an identifier for the current location to clipboard.
  447. DTL__COPY_TITLES:
  448.    Copies just the titles from TOC.
  449. DTL__COPY_TITLES_SGML:
  450.    Copies titles with the sgml.
  451. **/
  452.  
  453. enum {
  454.    DTL__COPY_BASIC = 0,
  455.    DTL__COPY_SGML = 1,
  456.    DTL__COPY_DERIVED = 2,
  457.    DTL__COPY_SGML_DERIVED = 3,
  458.    DTL__COPY_LOCATION = 4,
  459.    DTL__COPY_TITLES = 5,
  460.    DTL__COPY_TITLES_SGML = 6
  461. };
  462.  
  463. /** Application Gui Datatypes
  464. Doc:
  465.    DtlGuiId: 
  466.       Device independent method to pass around GUI constructs.
  467.       This structure has different members for each platform:
  468.  
  469. UNIX:
  470.    Display    *display     X display 
  471.    XtAppContext    context         App Context 
  472.    Widget    window         window currently in discussion 
  473.  
  474. WINDOWS:
  475.    HANDLE   hInstance;
  476.    HANDLE   hPrevInstance;
  477.    LPSTR    lpszCmdParam;
  478.    int      nCmdShow;
  479.    HWND     window;
  480.  
  481.  MAC:
  482.    int            *display;
  483.    int            context;
  484.    WindowPtr    window;
  485. **/
  486.  
  487. #ifdef DTL__X_DEFS
  488. typedef struct _DtlGui {
  489.    Display    *display;
  490.    XtAppContext    context;
  491.    Widget    window;
  492. } DtlGui;
  493. #endif /* DTL__X_DEFS */
  494.  
  495. #ifdef DTL__WINDOWS_DEFS
  496. typedef struct _DtlGui {
  497.    HANDLE   hInstance;
  498.    HANDLE   hPrevInstance;
  499.    LPSTR    lpszCmdParam;
  500.    int      nCmdShow;
  501.    HWND     window;
  502. } DtlGui;
  503. #endif /* DTL__WINDOWS_DEFS */
  504.  
  505. #ifdef DTL__MAC_DEFS
  506. typedef struct _DtlGui {
  507.    int            *display;
  508.    int            context;
  509.    WindowPtr    window;
  510. } DtlGui;
  511. #endif /* DTL__MAC_DEFS */
  512.  
  513. typedef struct _DtlGui        *DtlGuiId;
  514.  
  515.  
  516. /** Major Datatypes
  517. DtlExrefId: is used as a handle to external scripts which have been created.
  518. DtlContextId: application context
  519. DtlViewId: view identifier of dtl view
  520. DtlBookId: book identifier
  521. DtlTocViewId: toc view identifier
  522. DtlGraphicId: the graphic identifier
  523. **/
  524.  
  525. typedef struct _DtlContext  *DtlContextId;
  526. typedef struct _DtlExref * DtlExrefId;
  527. typedef struct _DtlView  * DtlViewId;
  528. typedef struct _DtlBook  *DtlBookId;
  529. typedef struct _DtlTocView * DtlTocViewId;
  530. typedef struct _DtlGraphic * DtlRasterId;
  531. typedef struct _DtlGraphic * DtlGraphicId;
  532. typedef struct _DtlColWin * DtlColWinId;
  533. typedef struct _DtlColWinSeq * DtlColWinSeqId;
  534. typedef struct _DtlBookSeq * DtlBookSeqId;
  535. typedef struct _DtlViewSeq * DtlViewSeqId;
  536. typedef struct _DtlTocViewSeq * DtlTocViewSeqId;
  537. typedef struct _DtlMenuItem * DtlMenuItemId;
  538.  
  539.  
  540. /** Plugin Datatypes
  541. **/
  542. typedef void *DtlPluginId;
  543.  
  544.  
  545. /** DtlPluginInfo
  546. System specific plugin info.
  547. **/
  548.  
  549. typedef struct _DtlPluginInfo {
  550.    DtlContextId contextId;
  551.    Up user_data;
  552.    /* windows-only stuff */
  553. #ifdef DTL__WINDOWS_DEFS
  554.    void *mdiContextId;
  555.    void *dtlDdeMgrId;
  556.    void *newContextAddress;   
  557.    void *hAppInstance;
  558.    void *hDtlInstance;
  559. #endif /* DTL__WINDOWS_DEFS */
  560.  
  561. } DtlPluginInfo;
  562.  
  563. typedef struct _DtlPluginInfo *DtlPluginInfoId;
  564.  
  565. typedef struct _DtlPropertyValueInfo {
  566.    DtlContextId contextId;
  567.    DtlBookId bookId;
  568.    unsigned long element;
  569. } DtlPropertyValueInfo;
  570.  
  571. typedef struct _DtlPropertyValueInfo *DtlPropertyValueInfoId;
  572.  
  573. /** Major Callback Procs
  574. DtlApplicationCallbackProc: callbacks from addApplicationCallback.
  575. DtlScriptConstructProc: callback for constructing scripts
  576. DtlScriptRefreshProc: callback for refreshing scripts
  577. DtlScriptDestructProc: callback for destructing scripts
  578. DtlAnnotScriptConstructProc: callback for constructing annotScripts
  579. DtlAnnotScriptRefreshProc: callback for refreshing annotScripts
  580. DtlAnnotScriptDestructProc: callback for destructing annotScripts
  581. DtlInlineScriptConstructProc: callback for creating an inline object
  582. DtlInlineScriptResizeProc: callback for resizing an inline object
  583. DtlInlineScriptDestroyProc: callback for destroying an inline object
  584.  
  585. DtlBookCallbackProc: callbacks from addViewCallback
  586. DtlViewCallbackProc: callbacks from addViewCallback
  587. DtlTocViewCallbackProc: callbacks from addTocViewCallback
  588. DtlTocViewGeneratorProc: callbacks from DTLgenerateTocSelections
  589. DtlGraphicCallbackProc: callbacks from addGraphicCallback
  590.  
  591. DtlGraphicLoadProc: callback to create a graphic image
  592.  
  593. DtlPropertyValueProc: callback for prop value functions
  594. DtlwPropertyValueProc: newer callback for prop value functions (Unicode)
  595.  
  596. DtlMenuItemProc: callback from a DTLmenu item
  597. **/
  598.  
  599. #ifdef use_prototypes
  600.  
  601. typedef void (OS_PASCALCB *DtlApplicationCallbackProc)
  602.   (DtlContextId, Up udata, 
  603.    Up calldata1, Up calldata2, Up calldata3, Up calldata4);
  604.  
  605. typedef void (OS_PASCALCB *DtlBookCallbackProc)
  606.    (DtlBookId, Up udata, Up cd1, Up cd2);
  607.  
  608. typedef void (OS_PASCALCB *DtlViewCallbackProc)
  609.    (DtlViewId, Up udata, Up cd1, Up cd2,Up cd3);
  610.  
  611. typedef void (OS_PASCALCB *DtlTocViewCallbackProc)
  612.    (DtlTocViewId, Up udata, Up cd1, Up cd2);
  613.  
  614. typedef int (OS_PASCALCB *DtlTocViewGeneratorProc)
  615.    (DtlTocViewId, Up udata, unsigned long eid);
  616.  
  617. typedef void (OS_PASCALCB *DtlRasterCallbackProc)
  618.    (DtlRasterId, Up udata, Up cd1, Up cd2, Up cd3, Up cd4);
  619.  
  620. typedef void (OS_PASCALCB *DtlGraphicCallbackProc)
  621.    (DtlGraphicId, Up udata, Up cd1, Up cd2, Up cd3, Up cd4);
  622.  
  623. typedef int (OS_PASCALCB *DtlGraphicLoadProc)
  624.    (Up data, char *filename, Up  pixmap, Up cmap, int *w, int *h, int *depth);
  625.  
  626. /*****************************************************************/
  627.  
  628. typedef Up (OS_PASCALCB *DtlScriptConstructProc)
  629.    (DtlViewId, Up, DtlExrefId, unsigned long, char *);
  630.  
  631. typedef void (OS_PASCALCB *DtlScriptRefreshProc)
  632.    (DtlViewId, Up, DtlExrefId, unsigned long);
  633.  
  634. typedef void (OS_PASCALCB *DtlScriptDestructProc)
  635.    (DtlViewId, Up, DtlExrefId, unsigned long);
  636.  
  637. /*****************************************************************/
  638.  
  639. typedef int (OS_PASCALCB *DtlInlineScriptConstructProc)
  640.    (DtlViewId, Up udata, char *parms, DtlGuiId parent,
  641.     int width, DtlGuiId newchild, Up *retdata);
  642.  
  643. typedef void (OS_PASCALCB *DtlInlineScriptResizeProc)
  644.    (DtlViewId, Up udata, char *parms,
  645.     int width, DtlGuiId child, Up retdata);
  646.  
  647. typedef void (OS_PASCALCB *DtlInlineScriptDestroyProc)
  648.    (DtlViewId, Up udata, DtlGuiId child, Up retdata);
  649.  
  650. /*****************************************************************/
  651.  
  652. typedef Up (OS_PASCALCB *DtlAnnotScriptConstructProc)
  653.    (DtlBookId, Up, char *str,
  654.     int, unsigned long, char *, char *, DtlViewId);
  655.  
  656. typedef void (OS_PASCALCB *DtlAnnotScriptRefreshProc)
  657.                 (DtlBookId, Up, unsigned long eid, 
  658.          int, char *);
  659.  
  660. typedef void (OS_PASCALCB *DtlAnnotScriptDestructProc)
  661.                 (DtlBookId, Up, unsigned long eid, int, char *);
  662.  
  663. typedef void (OS_PASCALCB *DtlPropertyValueProc)
  664.    (char buf[], int maxbuf, int argc, char *argv[]);
  665.  
  666. typedef void (OS_PASCALCB *DtlwPropertyValueProc)
  667.    (DtlPropertyValueInfoId id, Up user_data,
  668.     UCSchar16 buf[], int maxbuf, int argc, UCSchar16 *argv[]);
  669.  
  670. typedef void (OS_PASCALCB *DtlMenuItemProc)
  671.    (DtlContextId, DtlMenuItemId, Up user_data);
  672.  
  673. typedef void (OS_PASCALCB *DtlFreeProc) (void* buffer);
  674.  
  675. #else
  676.  
  677. typedef void (OS_PASCALCB *DtlApplicationCallbackProc)();
  678. typedef void (OS_PASCALCB *DtlBookCallbackProc)();
  679. typedef void (OS_PASCALCB *DtlViewCallbackProc)();
  680. typedef void (OS_PASCALCB *DtlTocViewCallbackProc)();
  681. typedef int (OS_PASCALCB *DtlTocViewGeneratorProc)();
  682. typedef void (OS_PASCALCB *DtlRasterCallbackProc)();
  683. typedef void (OS_PASCALCB *DtlGraphicCallbackProc)();
  684. typedef int (OS_PASCALCB *DtlGraphicLoadProc)();
  685. typedef Up (OS_PASCALCB *DtlScriptConstructProc)();
  686. typedef void (OS_PASCALCB *DtlScriptRefreshProc)();
  687. typedef void (OS_PASCALCB *DtlScriptDestructProc)();
  688. typedef int (OS_PASCALCB *DtlInlineScriptConstructProc)();
  689. typedef void (OS_PASCALCB *DtlInlineScriptResizeProc)();
  690. typedef void (OS_PASCALCB *DtlInlineScriptDestroyProc)();
  691. typedef Up (OS_PASCALCB *DtlAnnotScriptConstructProc)();
  692. typedef void (OS_PASCALCB *DtlAnnotScriptRefreshProc)();
  693. typedef void (OS_PASCALCB *DtlAnnotScriptDestructProc)();
  694. typedef void (OS_PASCALCB *DtlPropertyValueProc)();
  695. typedef void (OS_PASCALCB *DtlMenuItemProc)();
  696. typedef void (OS_PASCALCB *DtlFreeProc) ();
  697.  
  698. #endif /* use prototypes */
  699.  
  700.  
  701.  
  702. /** Application Enumerations
  703. Doc:
  704. These are flags passed to DTLnewContext().
  705.    DTL__ABOUT_BOX: Flag specifying that the about box ("splash box")
  706.         should be shown at application startup.
  707.    DTL__FRAME_WINDOW: Flag specifiying that an MDI frame 
  708.         to parent the children in should be created. (ignored on UNIX systems).
  709.    DTL__APP_NO_INITIAL_COLWIN: Flag specifying that the initial Collection
  710.         Window that's typically shown should not be created. (ignored on
  711.         UNIX systems).
  712.    NOTE: All future application-level flags should start with __APP!   
  713. **/
  714.  
  715. enum {
  716.    DTL__ABOUT_BOX = (1L << 0),
  717.    DTL__FRAME_WINDOW = (1L << 1),
  718.    DTL__APP_NO_INITIAL_COLWIN = (1L << 2),
  719.    DTL__APP_PRIVATE_COLORMAP = (1L << 3)
  720. };
  721.  
  722.  
  723. /** Application Callbacks
  724. Doc: See DTLaddApplicationCallback for detailed description
  725.      of each callback type.
  726. **/
  727.  
  728. #define DTL__APPLICATION_ICON_CALLBACK            0
  729. #define DTL__APPLICATION_QUIT_CALLBACK            1
  730. #define DTL__APPLICATION_INPUT_CALLBACK            2
  731. #define DTL__APPLICATION_ERROR_CALLBACK            3
  732. #define DTL__APPLICATION_MENU_CALLBACK            4
  733. #define DTL__APPLICATION_BOOK_OPEN_REQUEST_CALLBACK    5
  734. #define DTL__APPLICATION_OPEN_REQUEST_CALLBACK        \
  735.     DTL__APPLICATION_BOOK_OPEN_REQUEST_CALLBACK
  736. #define DTL__APPLICATION_NOTE_DESTROY_CALLBACK        6
  737. #define DTL__APPLICATION_ANNOT_OPEN_CALLBACK        7
  738. #define DTL__APPLICATION_ANNOT_DELETE_CALLBACK        8
  739. #define DTL__APPLICATION_VIEW_OPEN_CALLBACK        9
  740. #define DTL__APPLICATION_TOC_VIEW_OPEN_CALLBACK     10
  741. #define DTL__APPLICATION_BOOK_OPEN_CALLBACK         11
  742. #define DTL__APPLICATION_SEARCH_CALLBACK         12
  743. #define DTL__APPLICATION_COLLECTION_SEARCH_CALLBACK    13
  744. #define DTL__APPLICATION_LIBRARY_SECURITY_CALLBACK     14
  745. #define DTL__APPLICATION_BOOK_SECURITY_CALLBACK     15
  746. #define DTL__APPLICATION_GRAPHIC_OPEN_CALLBACK         16
  747. #define DTL__APPLICATION_COLWIN_OPEN_CALLBACK         17
  748. #define DTL__APPLICATION_COLWIN_OPEN_REQUEST_CALLBACK    18
  749. #define DTL__APPLICATION_SELECTION_COERCION_CALLBACK    19
  750. #define DTL__APPLICATION_PRINT_PAGE_BREAK_CALLBACK      20
  751. #define DTL__NUMBER_APPLICATION_CALLBACKS               21
  752.  
  753.  
  754.  
  755. /** Print System Datatypes
  756. We specify the datatypes associated with a the Print System:
  757.    DtlPrintId: an identifier for a printing context.
  758.    Print Options: 
  759.       DTL__PRINT_GRAPHICS: should graphics be printed.
  760.       DTL__PRINT_ANNOTS: should annotations be printed.
  761.    
  762. **/
  763.  
  764. enum {
  765.    DTL__PRINT_GRAPHICS = (1L << 0),
  766.    DTL__PRINT_ANNOTS = (1L << 1),
  767.    DTL__PRINT_NODIALOG = (1L << 2)
  768. };
  769.  
  770. typedef struct _DtlPrint * DtlPrintId;
  771.  
  772. /** Book Datatypes
  773. We specify the datatypes associated with a DTL book:
  774.  
  775.    DTL__ROOT_ELEMENT: element id of the root of a book
  776.    DTL__NULL_ELEMENT: element id signifying no element
  777.    DTL__CDATA: cdata string
  778.    DTL__SHOW_TOC: create a book with a toc
  779.    DTL__SHOW_VIEW: create a book with a fulltext view
  780.    DTL__SHOW_MULTIVIEW: create a book with a multiview fulltext/toc view
  781.    DTL__ELEMENT_SEPARATOR: tag name separator
  782.  
  783. DTL__ACCESS_PUBLIC: public annotation access
  784. DTL__ACCESS_PRIVATE: private annotation access
  785.  
  786. DtlAnnotStruct:
  787.    This record structure holds all information about a given annotation.
  788.       title: name of annotation
  789.       annot_type: type of annotation, such as "Note", "Bookmark"
  790.                   or what you pass to DTLaddAnnotScript().
  791.       owner: owner of annotation
  792.       access: access, DTL__ANNOT_ACCESS_PUBLIC or DTL__ANNOT_ACCESS_PRIVATE
  793.       timestamp: time in universal time when annotation was created
  794.       script: script to run to launch annot
  795.       paramters: paramaters to send to script
  796. **/
  797.  
  798.  
  799. enum {
  800.    DTL__ACCESS_PRIVATE = 0,
  801.    DTL__ACCESS_PUBLIC,
  802.    DTL__ACCESS_ALL
  803. };
  804.  
  805. #define DTL__ROOT_ELEMENT    1L
  806. #define DTL__NULL_ELEMENT    0L
  807. #define DTL__CDATA        "#CDATA"
  808. #define DTL__ELEMENT_SEPARATOR  ','
  809.  
  810. typedef struct _DtlAnnotStruct {
  811.    char *title;
  812.    char *annot_type;
  813.    char *owner;
  814.    char *script;
  815.    char *parameters;
  816.    long timestamp;
  817.    int    access;
  818. } DtlAnnotStruct;
  819.  
  820.  
  821. /** DTL Window Type
  822. For use in DTLmenu package, for now.
  823. **/
  824.  
  825. typedef enum {
  826.    DTL__WINDOW_TYPE_UNKNOWN = 0,
  827.    DTL__WINDOW_TYPE_VIEW,
  828.    DTL__WINDOW_TYPE_GRAPHIC,
  829.    DTL__WINDOW_TYPE_COLWIN
  830. }  DtlWindowType;
  831.  
  832. /** DTLmenu flags
  833. Specifies info about a DtlMenuItem.
  834.  
  835. Example:
  836.    (How to add a new checkable menuitem with the separator after to the view menu)
  837.    
  838.    DtlMenuItemFlags flags;                                           ****************
  839.    flags=(DTL__MENU_ITEM_CHECKABLE | DTL__MENU_ITEM_SEPARATOR_AFTER) + DTL__VIEW_MENU;
  840.                                                                      ****************
  841.                                                                      
  842.    (Note that the "+ DTL__VIEW_MENU" is new to Dynatext 3.0)
  843. **/
  844.  
  845. enum {
  846.    DTL__MENU_ITEM_DEFAULT = 0L,
  847.    DTL__MENU_ITEM_CHECKABLE = ( 1L << 0 ),
  848.    DTL__MENU_ITEM_SEPARATOR_BEFORE = ( 1L << 1 ),
  849.    DTL__MENU_ITEM_SEPARATOR_AFTER = ( 1L << 2 ),
  850.  
  851.    /* --------------------------------- */
  852.    /* --- Dynatext 3.0 new settings --- */
  853.    /* --------------------------------- */
  854.    DTL__FILE_MENU                      = (1 << 16),   /* "file" */
  855.    DTL__EDIT_MENU                      = (2 << 16),   /* "edit" */
  856.    DTL__SEARCH_MENU                    = (3 << 16),   /* "search" */
  857.    DTL__BOOK_MENU                      = (4 << 16),   /* "book" */
  858.    DTL__JOURNAL_MENU                   = (5 << 16),   /* "journal" */
  859.    DTL__VIEW_MENU                      = (6 << 16),   /* "view" */
  860.    
  861.    /* Windows & Mac only... */
  862.    DTL__WINDOW_MENU                    = (7 << 16), 
  863.    
  864.    DTL__HELP_MENU                      = (8 << 16),   /* "help" */
  865.   
  866.    /* Windows only... (reserved 9 & 10) */
  867.    
  868.    /* Unix only...    (reserved 11 & 12) */
  869.    DTL__OPTIONS_MENU                   = (11 << 16),   /* "options" */
  870.    
  871.    /* Mac only...    (reserved 13 & 14) */
  872.    
  873.    /* All platforms. (reserved 15) */
  874.    
  875.    /* --------------------------------- */
  876.    /* ----------- Submenus ------------ */
  877.    /* --------------------------------- */
  878.    
  879.    DTL__VIEW_TOC_MENU                  = (16 << 16),   /* "toc-view" */
  880.    DTL__VIEW_CONTENT_MENU              = (17 << 16),   /* "ft-view" */
  881.    DTL__VIEW_ZOOM_MENU                 = (18 << 16),   /* "zoom-main" */
  882.    DTL__VIEW_EXPAND_TOC_TO_MENU        = (19 << 16)    /* "expand-toc" */
  883. };
  884. typedef long DtlMenuItemFlags;
  885.  
  886.  
  887. /** Book Callbacks
  888. See DTLaddBookCallback for more information on each callback type.
  889. **/
  890.  
  891. enum {
  892.    DTL__BOOK_DESTROY_CALLBACK,
  893.    DTL__BOOK_TOC_CALLBACK,
  894.    DTL__BOOK_ANNOTS_LOADED_CALLBACK,
  895.    DTL__NUMBER_BOOK_CALLBACKS
  896. };
  897.  
  898.  
  899. /** Book Creation Flags
  900. DTL__SHOW_TOC: show a toc when book is created.
  901. DTL__SHOW_VIEW: show fulltext view when book is created.
  902. DTL__SHOW_MULTIVIEW: show both when view is created.
  903. DTL__BACKGROUND_ANNOTS: load annotations in background.
  904. DTL__DISABLE_ANNOTS: completely disable annotations.
  905. **/
  906.  
  907. enum {
  908.    DTL__SHOW_TOC          = (1L << 0),
  909.    DTL__SHOW_VIEW         = (1L << 1),
  910.    DTL__BACKGROUND_ANNOTS = (1L << 2),
  911.    DTL__DISABLE_ANNOTS    = (1L << 3)
  912. };
  913.  
  914. #define DTL__SHOW_MULTIVIEW  (DTL__SHOW_TOC | DTL__SHOW_VIEW)
  915.  
  916. /** Toc View Datatypes
  917. DTL__TOC_MODE_NORMAL: normal action in toc, drives fulltext view.
  918. DTL__TOC_MODE_SELECT: select items for actions like printing,
  919.                       does not drive fulltext view.
  920. **/
  921.  
  922. enum {
  923.    DTL__TOC_MODE_NORMAL,
  924.    DTL__TOC_MODE_SELECT
  925. };
  926.  
  927. /** Toc View Modes
  928.   DTL__TOCVIEW_SORT - sort toc entries
  929.   DTL__TOCVIEW_ELIDE - elide toc (remove certain Toc entries)
  930. **/
  931.  
  932. enum {
  933.    DTL__TOCVIEW_SORT,
  934.    DTL__TOCVIEW_ELIDE
  935. };
  936.  
  937. /** Toc View Sorting Mode methods
  938.   DTL__TOCVIEW_SORT_HITS - Sort entries with most query hits first
  939.   DTL__TOCVIEW_SORT_NONE - Do not sort entries.
  940. **/
  941.  
  942. enum {
  943.    DTL__TOCVIEW_SORT_HITS,
  944.    DTL__TOCVIEW_SORT_NONE
  945. };
  946.  
  947. /** Toc View Elision Mode methods
  948.   DTL__TOCVIEW_ELIDE_HITS - Remove TOC entries with no query hits
  949.   DTL__TOCVIEW_ELIDE_NONE - Do not remove any TOC entries.
  950. **/
  951.  
  952. enum {
  953.    DTL__TOCVIEW_ELIDE_HITS,
  954.    DTL__TOCVIEW_ELIDE_NONE
  955. };
  956.  
  957. /** Toc View Callbacks
  958. DTL__TOC_VIEW_DESTROY_CALLBACK: 
  959. DTL__TOC_VIEW_INPUT_CALLBACK: 
  960. See DTLaddTocViewCallback() for further information.
  961. **/
  962.  
  963. enum {
  964.    DTL__TOC_VIEW_DESTROY_CALLBACK,
  965.    DTL__TOC_VIEW_INPUT_CALLBACK,
  966.    DTL__TOC_VIEW_RESIZE_CALLBACK,
  967.    DTL__NUMBER_TOC_VIEW_CALLBACKS
  968. };
  969.  
  970.  
  971. /** Query Datatypes
  972. We specify the datatypes associated with a DTL Query:
  973.    DtlQueryId: id for a query.
  974.  
  975.    DTL__FULL_FEEDBACK: provide number of occurences in toc.
  976.    DTL__RELEVANCE_FEEDBACK: provide relevance (log) function in toc.
  977.    DTL__BINARY_FEEDBACK: provide yes/no in toc.
  978.  
  979.    DTL__QUERY_MERGE_INSIDE: merge query 1 inside query 2 in call
  980.                             to DTLmergeQueries().
  981.    DTL__QUERY_MERGE_NOT_INSIDE: merge query 1 not inside query 2 in
  982.                                 call to DTLmergeQueries().
  983.    DTL__QUERY_MERGE_CONTAINING: merge query 1 containing query 2.
  984.    DTL__QUERY_MERGE_NOT_CONTAINING: merge query 1 not containing query 2.
  985.    DTL__QUERY_MERGE_OR: merge query 1 or query 2.
  986.    DTL__QUERY_MERGE_AND: merge query 1 and query 2.
  987. **/
  988.  
  989. typedef struct _DtlQuery * DtlQueryId;
  990.  
  991. enum {
  992.    DTL__FULL_FEEDBACK,
  993.    DTL__RELEVANCE_FEEDBACK,
  994.    DTL__BINARY_FEEDBACK
  995. };
  996.  
  997. enum {
  998.    DTL__QUERY_MERGE_INSIDE,
  999.    DTL__QUERY_MERGE_NOT_INSIDE,
  1000.    DTL__QUERY_MERGE_CONTAINING,
  1001.    DTL__QUERY_MERGE_NOT_CONTAINING,
  1002.    DTL__QUERY_MERGE_OR,
  1003.    DTL__QUERY_MERGE_AND
  1004. };
  1005.  
  1006.  
  1007.  
  1008. /** Lib Query Datatypes
  1009. We specify the datatypes associated with a DTL Library Level Query:
  1010.    DtlLibQueryId: id for a query.
  1011.    DTL__LIB_QUERY_INCLUDE_CONTEXT: does library query with inside allowed.
  1012.    DTL__LIB_QUERY_ROBUST_SEARCH: does a full query even if it involves
  1013.                                  more time to open actualy book indices.
  1014. **/
  1015.  
  1016. enum {
  1017.    DTL__LIB_QUERY_INCLUDE_CONTEXT = (1L << 0),
  1018.    DTL__LIB_QUERY_ROBUST_SEARCH = (1L << 1)
  1019. };
  1020.  
  1021. typedef struct _DtlLibQuery * DtlLibQueryId;
  1022.  
  1023.  
  1024. /** Hist Datatypes
  1025. We specify the datatypes associated with a DTL Hist:
  1026.    DtlHistoryId: id for a history.
  1027. **/
  1028.  
  1029. typedef struct _DtlHistory * DtlHistoryId;
  1030.  
  1031.  
  1032.  
  1033. /** DtlView Enums
  1034.    DTL__SHOW_HEADER: specifies that a view should have an EBT header.
  1035.    DTL__SHOW_LOGO: specifies that a view should have an EBT logo.
  1036.                    must have header to have a logo. (phasing out)
  1037.    DTL__SHOW_LOOKUP: shows the search gadgets          
  1038.    DTL__MULTI_VIEW: specifies that a view should have both a TOC and
  1039.                     a fulltext view.
  1040.    DTL__STANDALONE_VIEW: specifies that book is closed when this
  1041.                          is the last view to close and there is no toc.
  1042.    DTL__GLOSSARY_VIEW: specifies that view is closed when focus is lost
  1043.    DTL__REVELATORY_VIEW: view is a revelatory, and we should 
  1044.                          unhide the root element from the style sheet.
  1045.    DTL__HSCROLL_VIEW: view is a table, try to horizontal scroll.
  1046.    DTL__KEEP_STACK: specifies that a view should keep a history stack.    
  1047.                     if DTL__SHOW_HEADER is on, this is automatic.
  1048.    DTL__DISABLE_SGML_EXPORT: specifies that all SGML related items should
  1049.                     be disabled in the multi-view: Copy SGML, Show Tags,
  1050.                     Exporting of SGML titles or content.
  1051.      (Windows Only option)
  1052.    DTL__HIDE_TABS: Do not show the Stylesheet Tabs (Default is ON)
  1053.  
  1054. **/
  1055.  
  1056.  
  1057. enum {
  1058.    DTL__SHOW_HEADER = (1L << 0),
  1059.    DTL__SHOW_LOGO = (1L << 1),   /* PHASING OUT AFTER 2.0 */
  1060.    DTL__KEEP_STACK = (1L << 2),
  1061.    DTL__STANDALONE_VIEW = (1L << 3),
  1062.    DTL__GLOSSARY_VIEW = (1L << 4),
  1063.    DTL__MULTI_VIEW = (1L << 5),
  1064.    DTL__SHOW_LOOKUP = (1L << 6),
  1065.    DTL__REVELATORY_VIEW = (1L << 7),
  1066.    DTL__HSCROLL_VIEW = (1L << 8),
  1067.    DTL__CHUNKY_VIEW = (1L << 9),
  1068.    DTL__DISABLE_SGML_EXPORT = (1L << 10),
  1069.    DTL__HIDE_TABS = (1L << 11)
  1070.       /* private starts at 12 */
  1071. };
  1072.  
  1073. /** Dtl View Modes
  1074.    DTL__VIEW_MODE_NORMAL: normal view and selecting
  1075.    DTL__VIEW_MODE_NO_SELECT: turn off user selection
  1076.    DTL__VIEW_MODE_SINGLE_HIT: enable single-hit query feedback
  1077.    DTL__VIEW_MODE_MULTIPLE_HITS: enable multiple-hit query feedback
  1078. **/
  1079.  
  1080. enum {
  1081.    DTL__VIEW_MODE_NORMAL,
  1082.    DTL__VIEW_MODE_NO_SELECT,
  1083.    DTL__VIEW_MODE_SINGLE_HIT,
  1084.    DTL__VIEW_MODE_MULTIPLE_HITS
  1085. };
  1086.  
  1087. /** DtlView Callbacks
  1088. See DTLaddViewCallback() for further explanation.
  1089. **/
  1090.  
  1091. enum {
  1092.    DTL__VIEW_DESTROY_CALLBACK,
  1093.    DTL__VIEW_SCROLL_CALLBACK,
  1094.    DTL__VIEW_RESIZE_CALLBACK,
  1095.     DTL__VIEW_HSCROLL_CALLBACK,
  1096.     DTL__VIEW_SELECTION_CALLBACK,
  1097.    DTL__VIEW_PAINT_COMPLETE_CALLBACK,
  1098.    DTL__NUMBER_VIEW_CALLBACKS
  1099. };
  1100.  
  1101.  
  1102. /** DtlView Datatypes
  1103.  The DtlViewComponent Types: Allows caller to access platform-
  1104.  specific handle to the pieces of a DtlViewId. See
  1105.  DTLinqViewComponent() for further explanation.
  1106.  
  1107.    DTL__VIEW_CONTAINER_COMP: Top-level window handle (to the view itself)
  1108.    DTL__VIEW_SPLITPANE_COMP: Handle to splitpane (contains Fulltext and
  1109.      Toc).
  1110.    DTL__VIEW_SRCHPANEL_COMP: Handle to search panel.
  1111.    DTL__VIEW_TOC_COMP: Handle to TOC pane in splitpane. 
  1112.    DTL__VIEW_FULLTEXT_COMP: Handle to Fulltext pane in splitpane.
  1113.    DTL__VIEW_MENUBAR_COMP: Handle to menubar of window (UNIX only).
  1114.  
  1115.  The DtlViewLayout structure holds information about a given view's
  1116.  layout.  For each field, an "ignore" value can be set.  This allows
  1117.  you selectively change attributes of a view, while leaving other
  1118.  attributes unchanged. Fields:
  1119.  
  1120.  .tocPosition: the position of the TOC in the splitpane portion of
  1121.      the DtlView.  If the DltView has no TOC, this value is ignored.
  1122.      This value implicitly controls whether the splitbar is horizatal or
  1123.      vertical. When the TOC is positioned TOP or BOTTOM, the splitbar appears
  1124.      horizontal; when positioned LEFT or RIGHT, the splitbar appears
  1125.      vertical.
  1126.      > NOTE: On UNIX, only TOP and LEFT are supported. 
  1127.  .srchPanel: whether or not the search panel is shown.  If the view has
  1128.      not yet been mapped, this value will take effect when mapped.  If
  1129.      the view is mapped, the search panel visibility will immediately toggle. 
  1130.  .barType: thickness of the splitbar in View's splitpane.
  1131.      > NOTE: This field is ignored on UNIX (& Mac?)
  1132.  .barPosition: position of splitbar in the View's splitpane, based on
  1133.      the percent size of the TOC.  Values range from 0 to 100.   
  1134.      * 0 means position the splitbar all the way to one side, showing
  1135.        only the Fulltext view.  The user can manually slide the split
  1136.        bar to reveal the TOC.
  1137.      * 100 means position the splitbar all the way to one side, showing
  1138.        only the TOC.
  1139.      * DTL__VIEW_BARPOS_IGNORE means leave the current splitbar position.
  1140.      * DTL__VIEW_BARPOS_DEFAULT means allow DTL to place the splitbar.
  1141.        The default division is approx. 40% toc to 60% fulltext.
  1142. **/
  1143.  
  1144. typedef enum {
  1145.    DTL__VIEW_CONTAINER_COMP,   /* top-level window handle */
  1146.    DTL__VIEW_SPLITPANE_COMP,   /* handle to splitpane */
  1147.    DTL__VIEW_SRCHPANEL_COMP,   /* handle to search panel */
  1148.    DTL__VIEW_TOC_COMP,         /* handle to toc portion of splitpane */
  1149.    DTL__VIEW_FULLTEXT_COMP,    /* handle to fulltext portion of splitpane */
  1150.    DTL__VIEW_MENUBAR_COMP      /* handle to menubar (UNIX only) */
  1151. } DtlViewComponent;
  1152.  
  1153. typedef enum {
  1154.   DTL__VIEW_TOCPOS_IGNORE,      /* leave currrent setting; use default */
  1155.   DTL__VIEW_TOCPOS_TOP,         /* place toc on top (horiz splitbar)  */ 
  1156.   DTL__VIEW_TOCPOS_BOTTOM,      /* place toc on bottom (horiz splitbar) */
  1157.   DTL__VIEW_TOCPOS_LEFT,        /* place toc on left (vert splitbar)  */ 
  1158.   DTL__VIEW_TOCPOS_RIGHT        /* place toc on right (vert splitbar) */
  1159. } DtlViewTocPos;
  1160.  
  1161. typedef enum {
  1162.   DTL__VIEW_SRCHPANEL_IGNORE,   /* leave current setting; use default */
  1163.   DTL__VIEW_SRCHPANEL_SHOW,     /* show the search panel */
  1164.   DTL__VIEW_SRCHPANEL_HIDE      /* hide the search panel */
  1165. } DtlSrchPanelState;
  1166.  
  1167. typedef enum {
  1168.   DTL__VIEW_SPLITBAR_IGNORE,    /* leave current setting; use default */
  1169.   DTL__VIEW_SPLITBAR_NORMAL,    /* normal (thin) splitbar */
  1170.   DTL__VIEW_SPLITBAR_WIDE       /* thick splitbar */
  1171. } DtlViewSplitbarType;
  1172.  
  1173. #define DTL__VIEW_BARPOS_IGNORE    -1 /* leave current setting */
  1174. #define DTL__VIEW_BARPOS_DEFAULT   -2 /* use DTL default; split window 
  1175.                                          approx: TOC (40%) : Fulltext (60%) */
  1176.  
  1177. typedef struct _DtlViewLayout { 
  1178.    DtlViewTocPos       tocPosition;
  1179.    DtlSrchPanelState   srchPanel; 
  1180.    DtlViewSplitbarType barType;
  1181.    int                 barPosition;
  1182. } DtlViewLayout;
  1183.  
  1184.  
  1185. /** DtlElemGeom
  1186. DtlElemGeom: Structure used to pass around element geometries.
  1187. **/
  1188.  
  1189. typedef struct _DtlElemGeom {
  1190.    unsigned long eid;
  1191.    int    x, y, w, h;
  1192. } DtlElemGeom;
  1193.  
  1194.  
  1195. /** Graphic Callbacks
  1196. See DTLaddGraphicCallback for further information.
  1197. **/
  1198.  
  1199. enum {
  1200.    DTL__GRAPHIC_DESTROY_CALLBACK,
  1201.    DTL__GRAPHIC_BUTTON_PRESS_CALLBACK,
  1202.    DTL__GRAPHIC_REGION_CALLBACK,
  1203.    DTL__NUMBER_GRAPHIC_CALLBACKS
  1204. };
  1205.  
  1206.  
  1207. /** Graphic Formats
  1208. DTL__GRAPHIC_FORMAT_RASTER: A raster graphic.
  1209. DTL__GRAPHIC_FORMAT_CGM: A cgm graphic.
  1210. DTL__GRAPHIC_FORMAT_GRAPHIC: A cgm OR raster graphic.
  1211. DTL__GRAPHIC_FORMAT_VIDEO: Unsupported at this time.
  1212. **/
  1213.  
  1214. enum {
  1215.    DTL__GRAPHIC_FORMAT_RASTER,
  1216.    DTL__GRAPHIC_FORMAT_CGM,
  1217.    DTL__GRAPHIC_FORMAT_VIDEO,
  1218.     DTL__GRAPHIC_FORMAT_GRAPHIC
  1219. };
  1220.  
  1221.  
  1222. /** Raster Datatypes
  1223. Rasters are just here for backward compatibility.
  1224. Will be replaced by graphics post 2.0.
  1225. **/
  1226.  
  1227. enum {
  1228.    DTL__RASTER_DESTROY_CALLBACK = DTL__GRAPHIC_DESTROY_CALLBACK,
  1229.    DTL__RASTER_BUTTON_PRESS_CALLBACK = DTL__GRAPHIC_BUTTON_PRESS_CALLBACK,
  1230.    DTL__NUMBER_RASTER_CALLBACKS
  1231. };
  1232.  
  1233.  
  1234. /** Database Node Info Types
  1235. For determining the type of information contained in a node.
  1236. **/
  1237. #define DTL__EMPTY_NODE  (DTL__ERROR + 1)
  1238. #define DTL__NORMAL_NODE (DTL__ERROR + 2)
  1239. #define DTL__NDATA_NODE  (DTL__ERROR + 3)
  1240. #define DTL__SDATA_NODE  (DTL__ERROR + 4)
  1241. #define DTL__CDATA_NODE  (DTL__ERROR + 5)
  1242.  
  1243. /** C++ Support and C Support
  1244. **/
  1245.  
  1246. #ifdef __cplusplus
  1247. extern "C" {
  1248. #endif /* __cplusplus */
  1249.  
  1250.  
  1251. /** Application Context Prototypes
  1252. We specify the application context functions available.
  1253. **/
  1254.  
  1255. /*** amain.cc ***/
  1256. extern 
  1257. DTL_EXPORT
  1258. void
  1259. OS_PASCAL
  1260. DTLhook(
  1261. #ifdef use_prototypes
  1262. DtlContextId    id,
  1263. long    key,
  1264. long    op
  1265. #endif
  1266. );
  1267.  
  1268. /*** Main Routines ***/
  1269. extern
  1270. DTL_EXPORT
  1271. DtlContextId
  1272. OS_PASCAL
  1273. DTLnewContext(
  1274. #ifdef use_prototypes
  1275. int    *argc,
  1276. char    *argv[],
  1277. OS_CONST char     *data_dir, 
  1278. OS_CONST char    *x_dir,
  1279. OS_CONST char    *private_dir,
  1280. OS_CONST char    *public_dir,
  1281. OS_CONST char    *auth_service,
  1282. long     flags
  1283. #endif
  1284. );
  1285.  
  1286. extern
  1287. DTL_EXPORT
  1288. DtlContextId
  1289. OS_PASCAL
  1290. DTLnewContextFromGUI(
  1291. #ifdef use_prototypes
  1292. OS_CONST char    *name,
  1293. OS_CONST char    *classname,
  1294. OS_CONST char     *data_dir, 
  1295. OS_CONST char    *private_dir,
  1296. OS_CONST char    *public_dir,
  1297. OS_CONST char    *auth_service,
  1298. long     flags,
  1299. DtlGuiId    gui
  1300. #endif
  1301. );
  1302.  
  1303. extern
  1304. DTL_EXPORT
  1305. DtlGuiId    
  1306. OS_PASCAL
  1307. DTLinqGUI(
  1308. #ifdef use_prototypes
  1309. DtlContextId    id
  1310. #endif
  1311. );
  1312.  
  1313. /* PHASING OUT AFTER 2.0 */
  1314. #ifdef DTL__X_DEFS
  1315. extern
  1316. DTL_EXPORT
  1317. DtlContextId
  1318. OS_PASCAL
  1319. DTLnewContextFromX(
  1320. #ifdef use_prototypes
  1321. char    *name,
  1322. char    *classname,
  1323. char     *data_dir, 
  1324. char    *private_dir,
  1325. char    *public_dir,
  1326. char    *auth_service,
  1327. long     flags,
  1328. Display    *display,
  1329. XtAppContext    context
  1330. #endif
  1331. );
  1332.  
  1333. #endif /* DTL__X_DEFS */
  1334.  
  1335.  
  1336.  
  1337. #ifdef DTL__WINDOWS_DEFS
  1338.  
  1339. /* PHASING OUT AFTER 2.0 */
  1340. extern
  1341. DTL_EXPORT
  1342. DtlContextId
  1343. OS_PASCAL
  1344. DTLnewContextFromWindows(
  1345. #ifdef use_prototypes
  1346. HANDLE     hInstance,
  1347. HANDLE     hPrevInstance,
  1348. LPSTR     lpszCmdParam,
  1349. int     nCmdShow,
  1350. char     *data_dir, 
  1351. char    *private_dir,
  1352. char    *public_dir,
  1353. char    *auth_service,
  1354. long     flags        
  1355. #endif
  1356. );
  1357. #endif /* DTL__WINDOWS_DEFS */
  1358.  
  1359.  
  1360. #ifdef DTL__SIT_DEFS
  1361.  
  1362. extern
  1363. DTL_EXPORT
  1364. DtlContextId
  1365. OS_PASCAL
  1366. DTLnewContextServer(
  1367. #ifdef use_prototypes
  1368. OS_CONST char     *data_dir, 
  1369. OS_CONST char    *private_dir,
  1370. OS_CONST char    *public_dir,
  1371. OS_CONST char    *auth_service,
  1372. long     flags
  1373. #endif
  1374. );
  1375.  
  1376. #endif /* DTL__SIT_DEFS */
  1377.  
  1378. extern
  1379. DTL_EXPORT
  1380. char *
  1381. OS_PASCAL
  1382. DTLinqVersion(
  1383. #ifdef use_prototypes
  1384. DtlContextId    id
  1385. #endif
  1386. );
  1387.  
  1388. extern
  1389. DTL_EXPORT
  1390. int
  1391. OS_PASCAL
  1392. DTLcheckLibraryVersion(
  1393. #ifdef use_prototypes
  1394. int  major_version,
  1395. int  minor_version
  1396. #endif
  1397. );
  1398.  
  1399. extern
  1400. DTL_EXPORT
  1401. int
  1402. OS_PASCAL
  1403. DTLinqLibraryVersion(
  1404. #ifdef use_prototypes
  1405. int  *major_version,
  1406. int  *minor_version
  1407. #endif
  1408. );
  1409.  
  1410. extern
  1411. DTL_EXPORT
  1412. void
  1413. OS_PASCAL
  1414. DTLdestroyContext(
  1415. #ifdef use_prototypes
  1416. DtlContextId    id
  1417. #endif
  1418. );
  1419.  
  1420.  
  1421. /*** Error Routines ***/
  1422.  
  1423. extern
  1424. DTL_EXPORT
  1425. int
  1426. OS_PASCAL
  1427. DTLgetError(
  1428. #ifdef use_prototypes
  1429. DtlContextId    id
  1430. #endif
  1431. );
  1432.  
  1433. extern 
  1434. DTL_EXPORT
  1435. void
  1436. OS_CDECL
  1437. DTLerrorBox(
  1438. #ifdef use_prototypes
  1439. DtlContextId id,
  1440. int eid,
  1441. ...
  1442. #endif
  1443. );
  1444.  
  1445. extern
  1446. DTL_EXPORT
  1447. int
  1448. OS_PASCAL
  1449. DTLsetErrCallback(
  1450. #ifdef use_prototypes
  1451. DtlContextId id,
  1452. DtlApplicationCallbackProc callback,
  1453. Up user_data
  1454. #endif
  1455. );
  1456.  
  1457.  
  1458. /*** Collection Window Routines ***/
  1459.  
  1460. extern 
  1461. DTL_EXPORT
  1462. DtlColWinId
  1463. OS_PASCAL
  1464. DTLinqDefaultColWin(
  1465. #ifdef use_prototypes
  1466.     DtlContextId contextId
  1467. #endif
  1468. );
  1469.  
  1470. extern
  1471. DTL_EXPORT
  1472. int
  1473. OS_PASCAL
  1474. DTLupdateColWin(
  1475. #ifdef use_prototypes
  1476.     DtlColWinId    colWinId, 
  1477.     char *        collection
  1478. #endif
  1479. );
  1480.  
  1481.  
  1482. extern
  1483. DTL_EXPORT
  1484. int
  1485. OS_PASCAL
  1486. DTLinqActiveCols(
  1487. #ifdef use_prototypes
  1488.     DtlColWinId colWinId, 
  1489.     char *        buf,
  1490.     int             buf_size,
  1491.     int *            bytes_written,
  1492.     int *            num_collections
  1493. #endif
  1494. );
  1495.  
  1496.  
  1497. extern
  1498. DTL_EXPORT
  1499. int
  1500. OS_PASCAL
  1501. DTLinqCurrentBook(
  1502. #ifdef use_prototypes
  1503. DtlColWinId     colWinId, 
  1504.     char *        pathbuf,
  1505.     int             pathbuf_size,
  1506.     int *            pathbuf_bytes_written,
  1507.     char *        aliasbuf,
  1508.     int             aliasbuf_size,
  1509.     int *            aliasbuf_bytes_written
  1510. #endif
  1511. );
  1512.  
  1513. extern
  1514. DTL_EXPORT
  1515. int
  1516. OS_PASCAL
  1517. DTLinqColAlias(
  1518. #ifdef use_prototypes
  1519. DtlColWinId     colWinId, 
  1520.     char *        collection,
  1521.     char *        buf, 
  1522.     int            buf_size,
  1523.     int *            bytes_written
  1524. #endif
  1525. );
  1526.  
  1527.  
  1528. extern
  1529. DTL_EXPORT
  1530. int
  1531. OS_PASCAL
  1532. DTLperformColWinQuery(
  1533. #ifdef use_prototypes
  1534.    DtlColWinId cwid,
  1535.    const char *queryString
  1536. #endif
  1537. );
  1538.  
  1539.  
  1540.  
  1541. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1542.               Iterator Functions
  1543.  *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  1544.  
  1545. /*
  1546.  * colwin iterator
  1547.  */ 
  1548.  
  1549. extern
  1550. DTL_EXPORT
  1551. DtlColWinSeqId
  1552. OS_PASCAL
  1553. DTLstartColWinSequence(
  1554. #ifdef use_prototypes
  1555.     DtlContextId    contextId
  1556. #endif
  1557. );
  1558.  
  1559.  
  1560. extern 
  1561. DTL_EXPORT
  1562. DtlColWinId
  1563. OS_PASCAL
  1564. DTLnextColWinSequence(
  1565. #ifdef use_prototypes
  1566.     DtlColWinSeqId colWinSeqId
  1567. #endif
  1568. );
  1569.  
  1570.  
  1571. extern 
  1572. DTL_EXPORT
  1573. void
  1574. OS_PASCAL
  1575. DTLdestroyColWinSequence(
  1576. #ifdef use_prototypes
  1577.     DtlColWinSeqId colWinSeqId
  1578. #endif
  1579. );
  1580.  
  1581. /*
  1582.  * book iterator
  1583.  */ 
  1584.  
  1585. extern 
  1586. DTL_EXPORT
  1587. DtlBookSeqId
  1588. OS_PASCAL
  1589. DTLstartBookSequence(
  1590. #ifdef use_prototypes
  1591.     DtlContextId    contextId
  1592. #endif
  1593. );
  1594.  
  1595.  
  1596. extern 
  1597. DTL_EXPORT
  1598. DtlBookId
  1599. OS_PASCAL
  1600. DTLnextBookSequence(
  1601. #ifdef use_prototypes
  1602.     DtlBookSeqId bookSeqId
  1603. #endif
  1604. );
  1605.  
  1606.  
  1607. extern 
  1608. DTL_EXPORT
  1609. void
  1610. OS_PASCAL
  1611. DTLdestroyBookSequence(
  1612. #ifdef use_prototypes
  1613.     DtlBookSeqId bookSeqId
  1614. #endif
  1615. );
  1616.  
  1617. /*
  1618.  * view iterator
  1619.  */ 
  1620.  
  1621. extern 
  1622. DTL_EXPORT
  1623. DtlViewSeqId
  1624. OS_PASCAL
  1625. DTLstartViewSequence(
  1626. #ifdef use_prototypes
  1627.     DtlBookId bookId
  1628. #endif
  1629. );
  1630.  
  1631.  
  1632. extern 
  1633. DTL_EXPORT
  1634. DtlViewId
  1635. OS_PASCAL
  1636. DTLnextViewSequence(
  1637. #ifdef use_prototypes
  1638.     DtlViewSeqId viewSeqId
  1639. #endif
  1640. );
  1641.  
  1642.  
  1643. extern 
  1644. DTL_EXPORT
  1645. void
  1646. OS_PASCAL
  1647. DTLdestroyViewSequence(
  1648. #ifdef use_prototypes
  1649.     DtlViewSeqId viewSeqId
  1650. #endif
  1651. );
  1652.  
  1653. /*
  1654.  * tocView iterator
  1655.  */ 
  1656.  
  1657. extern 
  1658. DTL_EXPORT
  1659. DtlTocViewSeqId
  1660. OS_PASCAL
  1661. DTLstartTocViewSequence(
  1662. #ifdef use_prototypes
  1663.     DtlBookId bookId
  1664. #endif
  1665. );
  1666.  
  1667.  
  1668. extern 
  1669. DTL_EXPORT
  1670. DtlTocViewId
  1671. OS_PASCAL
  1672. DTLnextTocViewSequence(
  1673. #ifdef use_prototypes
  1674.     DtlTocViewSeqId tocViewSeqId
  1675. #endif
  1676. );
  1677.  
  1678.  
  1679. extern 
  1680. DTL_EXPORT
  1681. void
  1682. OS_PASCAL
  1683. DTLdestroyTocViewSequence(
  1684. #ifdef use_prototypes
  1685.     DtlTocViewSeqId tocViewSeqId
  1686. #endif
  1687. );
  1688.  
  1689.  
  1690.  
  1691. /*** Option Routines ***/
  1692.  
  1693. extern
  1694. DTL_EXPORT
  1695. void
  1696. OS_PASCAL
  1697. DTLsetOption(
  1698. #ifdef use_prototypes
  1699. DtlContextId    id,
  1700. int    option,
  1701. Up    value
  1702. #endif
  1703. );
  1704.  
  1705. extern
  1706. DTL_EXPORT
  1707. Up
  1708. OS_PASCAL
  1709. DTLgetOption(
  1710. #ifdef use_prototypes
  1711. DtlContextId    id,
  1712. int    option
  1713. #endif
  1714. );
  1715.  
  1716. extern
  1717. DTL_EXPORT
  1718. int
  1719. OS_PASCAL
  1720. DTLreadOption(
  1721. #ifdef use_prototypes
  1722. DtlContextId id, 
  1723. char *fname, 
  1724. char *var,
  1725. char *name, 
  1726. char buf[], 
  1727. int maxbuf
  1728. #endif
  1729. );
  1730.  
  1731. extern 
  1732. DTL_EXPORT
  1733. int
  1734. OS_PASCAL
  1735. DTLsetVariable(
  1736. #ifdef use_prototypes
  1737. OS_CONST char *variable, 
  1738. OS_CONST char *value
  1739. #endif
  1740. );
  1741.  
  1742. extern
  1743. DTL_EXPORT
  1744. char*
  1745. OS_PASCAL
  1746. DTLgetVariable(
  1747. #ifdef use_prototypes
  1748. OS_CONST char *variable
  1749. #endif
  1750. );
  1751.  
  1752.  
  1753. /*** Interface Routines ***/
  1754. extern
  1755. DTL_EXPORT
  1756. int
  1757. OS_PASCAL
  1758. DTLcreateMainWindow(
  1759. #ifdef use_prototypes
  1760. DtlContextId    id,
  1761. char    *name,
  1762. char    *title,
  1763. char    *book_dbases,
  1764. DtlApplicationCallbackProc    quit_callback,
  1765. Up    user_data
  1766. #endif
  1767. );
  1768.  
  1769. extern
  1770. DTL_EXPORT
  1771. void
  1772. OS_PASCAL
  1773. DTLsetBookDatabases(
  1774. #ifdef use_prototypes
  1775. DtlContextId    id,
  1776. char    *book_dbases
  1777. #endif
  1778. );
  1779.  
  1780. extern
  1781. DTL_EXPORT
  1782. char *
  1783. OS_PASCAL
  1784. DTLinqBookDatabases(
  1785. #ifdef use_prototypes
  1786. DtlContextId    contextId
  1787. #endif
  1788. );
  1789.  
  1790. extern
  1791. DTL_EXPORT
  1792. void
  1793. OS_PASCAL
  1794. DTLsetBookKeys(
  1795. #ifdef use_prototypes
  1796. DtlContextId    id,
  1797. char    *collection_keys,
  1798. char    *book_keys
  1799. #endif
  1800. );
  1801.  
  1802. extern
  1803. DTL_EXPORT
  1804. int
  1805. OS_PASCAL
  1806. DTLmapMainWindow(
  1807. #ifdef use_prototypes
  1808. DtlContextId    id
  1809. #endif
  1810. );
  1811.  
  1812. extern
  1813. DTL_EXPORT
  1814. int
  1815. OS_PASCAL
  1816. DTLunmapMainWindow(
  1817. #ifdef use_prototypes
  1818. DtlContextId    id
  1819. #endif
  1820. );
  1821.  
  1822. extern
  1823. DTL_EXPORT
  1824. int
  1825. OS_PASCAL
  1826. DTLshowHistWindow(
  1827. #ifdef use_prototypes
  1828. DtlContextId    id,
  1829. int    open
  1830. #endif
  1831. );
  1832.  
  1833. extern
  1834. DTL_EXPORT
  1835. int
  1836. OS_PASCAL
  1837. DTLshowErrorWindow(
  1838. #ifdef use_prototypes
  1839. DtlContextId id
  1840. #endif
  1841. );
  1842.  
  1843. extern
  1844. DTL_EXPORT
  1845. char *
  1846. OS_PASCAL
  1847. DTLlookupString(
  1848. #ifdef use_prototypes
  1849. DtlContextId    id,
  1850. int    num,
  1851. int    cache
  1852. #endif
  1853. );
  1854.  
  1855. extern
  1856. DTL_EXPORT
  1857. void
  1858. OS_PASCAL
  1859. DTLmainLoop(
  1860. #ifdef use_prototypes
  1861. DtlContextId    id
  1862. #endif
  1863. );
  1864.  
  1865. extern
  1866. DTL_EXPORT
  1867. void
  1868. OS_PASCAL
  1869. DTLeventSuppress(
  1870. #ifdef use_prototypes
  1871.    DtlContextId id
  1872. #endif
  1873. );
  1874.  
  1875. extern
  1876. DTL_EXPORT
  1877. void
  1878. OS_PASCAL
  1879. DTLeventEnable(
  1880. #ifdef use_prototypes
  1881.    DtlContextId id
  1882. #endif
  1883. );
  1884.  
  1885. extern
  1886. DTL_EXPORT
  1887. void
  1888. OS_PASCAL
  1889. DTLnextEvents(
  1890. #ifdef use_prototypes
  1891. DtlContextId    id
  1892. #endif
  1893. );
  1894.  
  1895. extern
  1896. DTL_EXPORT
  1897. void
  1898. OS_PASCAL
  1899. DTLstartWait(
  1900. #ifdef use_prototypes
  1901. DtlContextId    id
  1902. #endif
  1903. );
  1904.  
  1905. extern
  1906. DTL_EXPORT
  1907. void
  1908. OS_PASCAL
  1909. DTLendWait(
  1910. #ifdef use_prototypes
  1911. DtlContextId    id
  1912. #endif
  1913. );
  1914.  
  1915. extern
  1916. DTL_EXPORT
  1917. void
  1918. OS_PASCAL
  1919. DTLbeep(
  1920. #ifdef use_prototypes
  1921. DtlContextId    id,
  1922. int    vol,
  1923. int    num
  1924. #endif
  1925. );
  1926.  
  1927.  
  1928. #ifdef DTL__SIT_DEFS
  1929.  
  1930.  
  1931. /*** Script Routines ***/
  1932.  
  1933. extern
  1934. DTL_EXPORT
  1935. int
  1936. OS_PASCAL
  1937. DTLaddScript(
  1938. #ifdef use_prototypes
  1939. DtlContextId    id,
  1940. char    *script_name,
  1941. DtlScriptConstructProc        construct,
  1942. DtlScriptRefreshProc        refresh,
  1943. DtlScriptDestructProc        destruct,
  1944. Up    user_data
  1945. #endif
  1946. );
  1947.  
  1948. extern
  1949. DTL_EXPORT
  1950. int
  1951. OS_PASCAL
  1952. DTLaddAnnotScript(
  1953. #ifdef use_prototypes
  1954. DtlContextId    id,
  1955. char    *script_name,
  1956. DtlAnnotScriptConstructProc        construct,
  1957. DtlAnnotScriptRefreshProc        refresh,
  1958. DtlAnnotScriptDestructProc        destruct,
  1959. Up    user_data
  1960. #endif
  1961. );
  1962.  
  1963. extern 
  1964. DTL_EXPORT
  1965. int
  1966. OS_PASCAL
  1967. DTLaddCustomInlineScript(
  1968. #ifdef use_prototypes
  1969. DtlContextId id,
  1970. DtlInlineScriptConstructProc construct,
  1971. DtlInlineScriptResizeProc resize,
  1972. DtlInlineScriptDestroyProc destruct,
  1973. Up    udata
  1974. #endif
  1975. );
  1976.  
  1977. extern
  1978. DTL_EXPORT
  1979. int
  1980. OS_PASCAL
  1981. DTLgetScriptFunctions(
  1982. #ifdef use_prototypes
  1983. DtlContextId    id,
  1984. char    *script_name,
  1985. DtlScriptConstructProc    *construct,
  1986. DtlScriptRefreshProc    *refresh,
  1987. DtlScriptDestructProc    *destruct,
  1988. Up    *user_data
  1989. #endif
  1990. );
  1991.  
  1992. extern
  1993. DTL_EXPORT
  1994. int
  1995. OS_PASCAL
  1996. DTLgetAnnotScriptFunctions(
  1997. #ifdef use_prototypes
  1998. DtlContextId    id,
  1999. char    *script_name,
  2000. DtlAnnotScriptConstructProc    *construct,
  2001. DtlAnnotScriptRefreshProc    *refresh,
  2002. DtlAnnotScriptDestructProc    *destruct,
  2003. Up    *user_data
  2004. #endif
  2005. );
  2006.  
  2007. extern
  2008. DTL_EXPORT
  2009. int
  2010. OS_PASCAL
  2011. DTLaddApplicationCallback(
  2012. #ifdef use_prototypes
  2013. DtlContextId    id,
  2014. int    which,
  2015. DtlApplicationCallbackProc    callback,
  2016. Up    user_data
  2017. #endif
  2018. );
  2019.  
  2020. extern
  2021. DTL_EXPORT
  2022. int
  2023. OS_PASCAL
  2024. DTLinqApplicationCallback(
  2025. #ifdef use_prototypes
  2026. DtlContextId            id,
  2027. int                which,
  2028. DtlApplicationCallbackProc    *callback,
  2029. Up                *user_data
  2030. #endif
  2031. );
  2032.  
  2033. extern
  2034. DTL_EXPORT
  2035. int
  2036. OS_PASCAL
  2037. DTLaddPropertyValueFunction(
  2038. #ifdef use_prototypes
  2039. DtlContextId id, 
  2040. char *name, 
  2041. DtlPropertyValueProc func
  2042. #endif
  2043. );
  2044.  
  2045. extern
  2046. DTL_EXPORT
  2047. int
  2048. OS_PASCAL
  2049. DTLaddwPropertyValueFunction(
  2050. #ifdef use_prototypes
  2051. DtlContextId id, 
  2052. char *name, 
  2053. DtlwPropertyValueProc func,
  2054. Up user_data
  2055. #endif
  2056. );
  2057.  
  2058.  
  2059. extern
  2060. DTL_EXPORT
  2061. int
  2062. OS_PASCAL
  2063. DTLgetCurrentValues(
  2064. #ifdef use_prototypes
  2065. DtlContextId    id,
  2066. DtlBookId       *bid,
  2067. char    **bookname,
  2068. unsigned long *eid
  2069. #endif
  2070. );
  2071.  
  2072.  
  2073. #endif /* DTL__SIT_DEFS */
  2074.  
  2075.  
  2076. /*** Help Routines ***/
  2077.  
  2078. extern 
  2079. DTL_EXPORT
  2080. int
  2081. OS_PASCAL
  2082. DTLshowHelp(
  2083. #ifdef use_prototypes
  2084. DtlContextId id, 
  2085. char *which
  2086. #endif 
  2087. );
  2088.  
  2089.  
  2090. /** Menu prototypes
  2091. Here be the prototypes for the DTLmenu package.
  2092. **/
  2093.  
  2094. extern
  2095. DTL_EXPORT
  2096. DtlMenuItemId
  2097. OS_PASCAL
  2098. DTLmenuAddViewItem(
  2099. #ifdef use_prototypes
  2100. DtlViewId         viewId,
  2101. const char       *text, 
  2102. DtlMenuItemFlags  item_flags,
  2103. DtlMenuItemProc   callback, 
  2104. Up                user_data
  2105. #endif
  2106. );
  2107.  
  2108. extern
  2109. DTL_EXPORT
  2110. DtlMenuItemId
  2111. OS_PASCAL
  2112. DTLmenuAddGraphicItem(
  2113. #ifdef use_prototypes
  2114. DtlGraphicId      graphicId,
  2115. const char       *name, 
  2116. DtlMenuItemFlags  item_flags,
  2117. DtlMenuItemProc   callback, 
  2118. Up                user_data
  2119. #endif
  2120. );
  2121.  
  2122. extern
  2123. DTL_EXPORT
  2124. DtlMenuItemId
  2125. OS_PASCAL
  2126. DTLmenuAddColWinItem(
  2127. #ifdef use_prototypes
  2128. DtlColWinId       colWinId,
  2129. const char       *name, 
  2130. DtlMenuItemFlags  item_flags,
  2131. DtlMenuItemProc   callback, 
  2132. Up                user_data
  2133. #endif
  2134. );
  2135.  
  2136. extern
  2137. DTL_EXPORT
  2138. int
  2139. OS_PASCAL
  2140. DTLmenuRenameItem(
  2141. #ifdef use_prototypes
  2142. DtlMenuItemId     menuItemId, 
  2143. const char       *text
  2144. #endif
  2145. );
  2146.  
  2147. extern
  2148. DTL_EXPORT
  2149. int
  2150. OS_PASCAL
  2151. DTLmenuRemoveItem(
  2152. #ifdef use_prototypes
  2153. DtlMenuItemId     menuItemId
  2154. #endif
  2155. );
  2156.  
  2157. extern
  2158. DTL_EXPORT
  2159. DtlViewId
  2160. OS_PASCAL
  2161. DTLmenuInqView(
  2162. #ifdef use_prototypes
  2163. DtlMenuItemId     menuItemId
  2164. #endif
  2165. );
  2166.  
  2167. extern
  2168. DTL_EXPORT
  2169. DtlGraphicId
  2170. OS_PASCAL
  2171. DTLmenuInqGraphic(
  2172. #ifdef use_prototypes
  2173. DtlMenuItemId     menuItemId 
  2174. #endif
  2175. );
  2176.  
  2177. extern
  2178. DTL_EXPORT
  2179. DtlColWinId
  2180. OS_PASCAL
  2181. DTLmenuInqColWin(
  2182. #ifdef use_prototypes
  2183. DtlMenuItemId     menuItemId 
  2184. #endif
  2185. );
  2186.  
  2187. extern
  2188. DTL_EXPORT
  2189. DtlWindowType
  2190. OS_PASCAL
  2191. DTLmenuInqWindowType(
  2192. #ifdef use_prototypes
  2193. DtlMenuItemId     menuItemId 
  2194. #endif
  2195. );
  2196.  
  2197. extern
  2198. DTL_EXPORT
  2199. int
  2200. OS_PASCAL
  2201. DTLmenuEnableItem(
  2202. #ifdef use_prototypes
  2203. DtlMenuItemId     menuItemId, 
  2204. int               enableitem
  2205. #endif
  2206. );
  2207.  
  2208. extern
  2209. DTL_EXPORT
  2210. int
  2211. OS_PASCAL
  2212. DTLmenuInqItemEnabled(
  2213. #ifdef use_prototypes
  2214. DtlMenuItemId     menuItemId,  
  2215. int              *enabled
  2216. #endif
  2217. );
  2218.  
  2219. extern
  2220. DTL_EXPORT
  2221. int
  2222. OS_PASCAL
  2223. DTLmenuCheckItem(
  2224. #ifdef use_prototypes
  2225. DtlMenuItemId     menuItemId, 
  2226. int               check
  2227. #endif
  2228. );
  2229.  
  2230. extern
  2231. DTL_EXPORT
  2232. int
  2233. OS_PASCAL
  2234. DTLmenuInqItemChecked(
  2235. #ifdef use_prototypes
  2236. DtlMenuItemId     menuItemId, 
  2237. int              *checked
  2238. #endif
  2239. );
  2240.  
  2241. extern
  2242. DTL_EXPORT
  2243. int
  2244. OS_PASCAL
  2245. DTLmenuInqItemInternal(
  2246. #ifdef use_prototypes
  2247. DtlMenuItemId     menuItemId, 
  2248. Up               *return_value
  2249. #endif 
  2250. );
  2251.  
  2252.  
  2253.  
  2254. /** Book Prototypes
  2255. We specify the routines associated with a DTL book.
  2256. **/
  2257.  
  2258. /*** Main Routines ***/
  2259. extern
  2260. DTL_EXPORT
  2261. DtlBookId
  2262. OS_PASCAL
  2263. DTLnewBook(
  2264. #ifdef use_prototypes
  2265. DtlContextId    id,
  2266. char    *book_dbase,
  2267. char    *book_name,
  2268. DtlBookCallbackProc    close_callback,
  2269. Up    user_data,
  2270. long    flags
  2271. #endif
  2272. );
  2273.  
  2274. extern
  2275. DTL_EXPORT
  2276. DtlBookId
  2277. OS_PASCAL
  2278. DTLopenCachedBook(
  2279. #ifdef use_prototypes
  2280. DtlContextId    id,
  2281. char    *book_dbase,
  2282. char    *book_name
  2283. #endif
  2284. );
  2285.  
  2286. extern
  2287. DTL_EXPORT
  2288. DtlBookId
  2289. OS_PASCAL
  2290. DTLADIopenCachedBook(
  2291. #ifdef use_prototypes
  2292. DtlContextId contextId,
  2293. char *bookPath,
  2294. char *adiImpl,
  2295. char *bookAlias
  2296. #endif
  2297. );
  2298.  
  2299. extern
  2300. DTL_EXPORT
  2301. void
  2302. OS_PASCAL
  2303. DTLcloseCachedBook(
  2304. #ifdef use_prototypes
  2305. DtlBookId    bid
  2306. #endif
  2307. );
  2308.  
  2309.  
  2310. /* PHASING OUT AFTER 2.0 */
  2311. extern
  2312. DTL_EXPORT
  2313. int
  2314. OS_PASCAL
  2315. DTLloadToc(
  2316. #ifdef use_prototypes
  2317. DtlBookId    bid,
  2318. char    *name
  2319. #endif
  2320. );
  2321.  
  2322. extern
  2323. DTL_EXPORT
  2324. void
  2325. OS_PASCAL
  2326. DTLdestroyBook(
  2327. #ifdef use_prototypes
  2328. DtlBookId    bid
  2329. #endif
  2330. );
  2331.  
  2332.  
  2333. /*** Interface Routines ***/
  2334. /* PHASING OUT AFTER 2.0 */
  2335. extern
  2336. DTL_EXPORT
  2337. int
  2338. OS_PASCAL
  2339. DTLcreateTocWindow(
  2340. #ifdef use_prototypes
  2341. DtlBookId    bid,
  2342. char    *name,
  2343. char    *title
  2344. #endif
  2345. );
  2346.  
  2347.  
  2348. #ifdef DTL__SIT_DEFS
  2349.  
  2350.  
  2351. #ifdef DTL__X_DEFS
  2352.  
  2353. /* PHASING OUT AFTER 2.0 */
  2354. extern
  2355. DTL_EXPORT
  2356. int
  2357. OS_PASCAL
  2358. DTLcreateTocWindowFromX(
  2359. #ifdef use_prototypes
  2360. DtlBookId    bid,
  2361. Widget    parent
  2362. #endif
  2363. );
  2364.  
  2365.  
  2366. /* PHASING OUT AFTER 2.0 */
  2367. extern
  2368. DTL_EXPORT
  2369. Widget
  2370. OS_PASCAL
  2371. DTLinqTocWidget(
  2372. #ifdef use_prototypes
  2373. DtlBookId    bid
  2374. #endif
  2375. );
  2376.  
  2377.  
  2378. #endif /* DTL__X_DEFS */
  2379.  
  2380. #ifdef DTL__WINDOWS_DEFS
  2381.  
  2382. /* PHASING OUT AFTER 2.0 */
  2383. extern
  2384. DTL_EXPORT
  2385. int
  2386. OS_PASCAL
  2387. DTLcreateTocWindowFromWindows(
  2388. #ifdef use_prototypes
  2389. DtlBookId    bid,
  2390. HWND    parent
  2391. #endif
  2392. );
  2393.  
  2394.  
  2395. /* PHASING OUT AFTER 2.0 */
  2396. extern
  2397. DTL_EXPORT
  2398. HWND
  2399. OS_PASCAL
  2400. DTLinqTocHWND(
  2401. #ifdef use_prototypes
  2402. DtlBookId    bid
  2403. #endif
  2404. );
  2405.  
  2406.  
  2407. #endif /* DTL__WINDOWS_DEFS */
  2408.  
  2409. #endif /* DTL__SIT_DEFS */
  2410.  
  2411. /* PHASING OUT AFTER 2.0 */
  2412. extern
  2413. DTL_EXPORT
  2414. int
  2415. OS_PASCAL
  2416. DTLmapTocWindow(
  2417. #ifdef use_prototypes
  2418. DtlBookId    bid
  2419. #endif
  2420. );
  2421.  
  2422. /* PHASING OUT AFTER 2.0 */
  2423. extern
  2424. DTL_EXPORT
  2425. int
  2426. OS_PASCAL
  2427. DTLunmapTocWindow(
  2428. #ifdef use_prototypes
  2429. DtlBookId    bid
  2430. #endif
  2431. );
  2432.  
  2433. /* PHASING OUT AFTER 2.0 */
  2434. extern
  2435. DTL_EXPORT
  2436. int
  2437. OS_PASCAL
  2438. DTLcreateLookupWindow(
  2439. #ifdef use_prototypes
  2440. DtlBookId    bid,
  2441. char    *name,
  2442. char    *title
  2443. #endif
  2444. );
  2445.  
  2446. /* PHASING OUT AFTER 2.0 */
  2447. extern
  2448. DTL_EXPORT
  2449. int
  2450. OS_PASCAL
  2451. DTLmapLookupWindow(
  2452. #ifdef use_prototypes
  2453. DtlBookId    bid
  2454. #endif
  2455. );
  2456.  
  2457. /* PHASING OUT AFTER 2.0 */
  2458. extern
  2459. DTL_EXPORT
  2460. int
  2461. OS_PASCAL
  2462. DTLunmapLookupWindow(
  2463. #ifdef use_prototypes
  2464. DtlBookId    bid
  2465. #endif
  2466. );
  2467.  
  2468. /* PHASING OUT AFTER 2.0 */
  2469. extern
  2470. DTL_EXPORT
  2471. int
  2472. OS_PASCAL
  2473. DTLcreateAnnotationWindow(
  2474. #ifdef use_prototypes
  2475. DtlBookId    bid,
  2476. char    *name,
  2477. char    *title
  2478. #endif
  2479. );
  2480.  
  2481. /* PHASING OUT AFTER 2.0 */
  2482. extern
  2483. DTL_EXPORT
  2484. int
  2485. OS_PASCAL
  2486. DTLmapAnnotationWindow(
  2487. #ifdef use_prototypes
  2488. DtlBookId    bid
  2489. #endif
  2490. );
  2491.  
  2492. /* PHASING OUT AFTER 2.0 */
  2493. extern
  2494. DTL_EXPORT
  2495. int
  2496. OS_PASCAL
  2497. DTLunmapAnnotationWindow(
  2498. #ifdef use_prototypes
  2499. DtlBookId    bid
  2500. #endif
  2501. );
  2502.  
  2503.  
  2504.  
  2505.  
  2506. #ifdef DTL__SIT_DEFS
  2507.  
  2508. /** Callback Routines ***/
  2509.  
  2510. extern
  2511. DTL_EXPORT
  2512. int
  2513. OS_PASCAL
  2514. DTLaddBookCallback(
  2515. #ifdef use_prototypes
  2516. DtlBookId bid, 
  2517. int which,
  2518. DtlBookCallbackProc callback, 
  2519. Up data
  2520. #endif
  2521. );
  2522.  
  2523. extern
  2524. DTL_EXPORT
  2525. int
  2526. OS_PASCAL
  2527. DTLinqBookCallback(
  2528. #ifdef use_prototypes
  2529. DtlBookId         bid, 
  2530. int             which,
  2531. DtlBookCallbackProc     *callback, 
  2532. Up             *data
  2533. #endif
  2534. );
  2535.  
  2536. /* PHASING OUT AFTER 2.0 */
  2537. extern
  2538. DTL_EXPORT
  2539. int
  2540. OS_PASCAL
  2541. DTLsetTocCallback(
  2542. #ifdef use_prototypes
  2543. DtlBookId bid, 
  2544. DtlBookCallbackProc callback, 
  2545. Up data
  2546. #endif
  2547. );
  2548.  
  2549. extern
  2550. DTL_EXPORT
  2551. int
  2552. OS_PASCAL
  2553. DTLinqTocCallback(
  2554. #ifdef use_prototypes
  2555. DtlBookId         bid, 
  2556. DtlBookCallbackProc     *callback, 
  2557. Up             *data
  2558. #endif
  2559. );
  2560.  
  2561. #endif /* DTL__SIT_DEFS */
  2562.  
  2563.  
  2564. /*** Misc Routines ***/
  2565. extern
  2566. DTL_EXPORT
  2567. int
  2568. OS_PASCAL
  2569. DTLredrawAllViews(
  2570. #ifdef use_prototypes
  2571. DtlBookId    bid
  2572. #endif
  2573. );
  2574.  
  2575. extern
  2576. DTL_EXPORT
  2577. int
  2578. OS_PASCAL
  2579. DTLsetActiveView(
  2580. #ifdef use_prototypes
  2581. DtlBookId    bid,
  2582. DtlViewId    vid
  2583. #endif
  2584. );
  2585.  
  2586. extern
  2587. DTL_EXPORT
  2588. DtlViewId
  2589. OS_PASCAL
  2590. DTLinqActiveView(
  2591. #ifdef use_prototypes
  2592. DtlBookId    bid
  2593. #endif
  2594. );
  2595.  
  2596. extern
  2597. DTL_EXPORT
  2598. DtlContextId
  2599. OS_PASCAL
  2600. DTLinqContext(
  2601. #ifdef use_prototypes
  2602. DtlBookId    bid
  2603. #endif
  2604. );
  2605.  
  2606. extern
  2607. DTL_EXPORT
  2608. char *
  2609. OS_PASCAL
  2610. DTLinqBookName(
  2611. #ifdef use_prototypes
  2612. DtlBookId    bid
  2613. #endif
  2614. );
  2615.  
  2616. extern
  2617. DTL_EXPORT
  2618. UCSchar16 *
  2619. OS_PASCAL
  2620. DTLwInqBookName(
  2621. #ifdef use_prototypes
  2622.    DtlBookId    bookId
  2623. #endif
  2624. );
  2625.  
  2626. extern
  2627. DTL_EXPORT
  2628. char *
  2629. OS_PASCAL
  2630. DTLinqBookDbase(
  2631. #ifdef use_prototypes
  2632. DtlBookId    bid
  2633. #endif
  2634. );
  2635.  
  2636. extern
  2637. DTL_EXPORT
  2638. char *
  2639. OS_PASCAL
  2640. DTLinqBookAlias(
  2641. #ifdef use_prototypes
  2642. DtlBookId    bid
  2643. #endif
  2644. );
  2645.  
  2646. extern
  2647. DTL_EXPORT
  2648. int
  2649. OS_PASCAL
  2650. DTLsetBookAlias(
  2651. #ifdef use_prototypes
  2652. DtlBookId    bid,
  2653. char*       alias                     
  2654. #endif
  2655. );
  2656.  
  2657. extern
  2658. DTL_EXPORT
  2659. char *
  2660. OS_PASCAL
  2661. DTLscriptEvaluate(
  2662. #ifdef use_prototypes
  2663. DtlBookId    bid,
  2664. unsigned long    eid,
  2665. char *        expression,
  2666. char        buffer[],
  2667. int        length
  2668. #endif
  2669. );
  2670.  
  2671. extern
  2672. DTL_EXPORT
  2673. UCSchar16 *
  2674. OS_PASCAL
  2675. DTLwScriptEvaluate(
  2676. #ifdef use_prototypes
  2677. DtlBookId        bid,
  2678. unsigned long    eid,
  2679. UCSchar16 *        expression,
  2680. UCSchar16        buffer[],
  2681. size_t            length
  2682. #endif
  2683. );
  2684.  
  2685. extern
  2686. DTL_EXPORT
  2687. char *
  2688. OS_PASCAL
  2689. DTLmultiBookScriptEvaluate(
  2690. #ifdef use_prototypes
  2691. DtlBookId       bid,
  2692. DtlBookId       dbid,
  2693. unsigned long   eid,
  2694. char *          expression,
  2695. char            buffer[],
  2696. int             length
  2697. #endif
  2698. );
  2699.  
  2700. extern
  2701. DTL_EXPORT
  2702. UCSchar16 *
  2703. OS_PASCAL
  2704. DTLwMultiBookScriptEvaluate(
  2705. #ifdef use_prototypes
  2706. DtlBookId       bid,
  2707. DtlBookId       dbid,
  2708. unsigned long   eid,
  2709. UCSchar16 *     expression,
  2710. UCSchar16       buffer[],
  2711. size_t          length
  2712. #endif
  2713. );
  2714.  
  2715. extern
  2716. DTL_EXPORT
  2717. char *
  2718. OS_PASCAL
  2719. DTLgetElementScript(
  2720. #ifdef use_prototypes
  2721. DtlViewId vid, 
  2722. unsigned long eid, 
  2723. char scr[], 
  2724. char parms[], 
  2725. int maxbuf
  2726. #endif
  2727. );
  2728.  
  2729. extern
  2730. DTL_EXPORT
  2731. DtlViewId
  2732. OS_PASCAL
  2733. DTLgetActiveMDIView(
  2734. #ifdef use_prototypes
  2735. DtlContextId    id
  2736. #endif
  2737. );
  2738.  
  2739. extern
  2740. DTL_EXPORT
  2741. DtlTocViewId
  2742. OS_PASCAL
  2743. DTLnewAssociatedTocView(
  2744. #ifdef use_prototypes
  2745. DtlViewId vid
  2746. #endif
  2747. );
  2748.  
  2749. extern
  2750. DTL_EXPORT
  2751. DtlGuiId
  2752. OS_PASCAL
  2753. DTLinqViewComponent(
  2754. #ifdef use_prototypes
  2755. DtlViewId         vid,
  2756. DtlViewComponent  cmp
  2757. #endif
  2758. );
  2759.  
  2760. extern
  2761. DTL_EXPORT
  2762. int
  2763. OS_PASCAL
  2764. DTLgetViewLayout(
  2765. #ifdef use_prototypes
  2766. DtlViewId       vid,
  2767. DtlViewLayout  *viewLayout
  2768. #endif
  2769. );
  2770.  
  2771. extern
  2772. DTL_EXPORT
  2773. int
  2774. OS_PASCAL
  2775. DTLsetViewLayout(
  2776. #ifdef use_prototypes
  2777. DtlViewId       vid,
  2778. DtlViewLayout   viewLayout
  2779. #endif
  2780. );
  2781.  
  2782. extern
  2783. DTL_EXPORT
  2784. int
  2785. OS_PASCAL
  2786. DTLperformViewMenuAction(
  2787. #ifdef use_prototypes                            
  2788. DtlViewId   vid,
  2789. Up          menuItem
  2790. #endif
  2791. );
  2792.  
  2793.  
  2794.  
  2795. #ifdef DTL__SIT_DEFS
  2796.  
  2797.  
  2798.  
  2799. /** Database Prototypes
  2800. We specify the routines associated with database queries.
  2801. **/
  2802.  
  2803. extern 
  2804. DTL_EXPORT
  2805. int
  2806. OS_PASCAL
  2807. DTLgetNodeInfo(
  2808. #ifdef use_prototypes
  2809.     DtlBookId bookId,
  2810.     unsigned long root
  2811. #endif
  2812. );
  2813.  
  2814. /*** Query Routines ***/
  2815. extern
  2816. DTL_EXPORT
  2817. char *
  2818. OS_PASCAL
  2819. DTLgetTag(
  2820. #ifdef use_prototypes
  2821. DtlBookId    bid, 
  2822. unsigned long    eid,
  2823. char    buf[],
  2824. int    buf_length
  2825. #endif
  2826. );
  2827.  
  2828. extern
  2829. DTL_EXPORT
  2830. UCSchar16 *
  2831. OS_PASCAL
  2832. DTLwGetTag(
  2833. #ifdef use_prototypes
  2834.    DtlBookId        bookId, 
  2835.    unsigned long    elementId,
  2836.    UCSchar16        buf[],
  2837.    size_t            buf_length
  2838. #endif
  2839. );
  2840.  
  2841. extern
  2842. DTL_EXPORT
  2843. char *
  2844. OS_PASCAL
  2845. DTLgetFullTag(
  2846. #ifdef use_prototypes
  2847. DtlBookId     bid, 
  2848. unsigned long eid,
  2849. char  buf[],
  2850. int   buf_length
  2851. #endif
  2852. );
  2853.   
  2854. extern
  2855. DTL_EXPORT
  2856. UCSchar16 *
  2857. OS_PASCAL
  2858. DTLwGetFullTag(
  2859. #ifdef use_prototypes
  2860.    DtlBookId          bookId, 
  2861.    unsigned long      elementId,
  2862.    UCSchar16          buf[],
  2863.    size_t                     buf_length
  2864. #endif
  2865. );
  2866.  
  2867.  
  2868. extern
  2869. DTL_EXPORT
  2870. char *
  2871. OS_PASCAL
  2872. DTLgetAttributes(
  2873. #ifdef use_prototypes
  2874. DtlBookId    bid, 
  2875. unsigned long    eid,
  2876. char    buf[],
  2877. int    buf_length
  2878. #endif
  2879. );
  2880.  
  2881. extern
  2882. DTL_EXPORT
  2883. UCSchar16 *
  2884. OS_PASCAL
  2885. DTLwGetAttributes(
  2886. #ifdef use_prototypes
  2887. DtlBookId    bid, 
  2888. unsigned long    eid,
  2889. UCSchar16    buf[],
  2890. size_t    buf_length
  2891. #endif
  2892. );
  2893.  
  2894. extern
  2895. DTL_EXPORT
  2896. char *
  2897. OS_PASCAL
  2898. DTLgetAttr(
  2899. #ifdef use_prototypes
  2900. DtlBookId    bid, 
  2901. unsigned long    eid,
  2902. char    *attrname,
  2903. char    attrval[],
  2904. int    buf_length
  2905. #endif
  2906. );
  2907.  
  2908. extern
  2909. DTL_EXPORT
  2910. UCSchar16 *
  2911. OS_PASCAL
  2912. DTLwGetAttr(
  2913. #ifdef use_prototypes
  2914.    DtlBookId        bookId, 
  2915.    unsigned long    elementId,
  2916.    UCSchar16    *    attrname,
  2917.    UCSchar16        attrval[],
  2918.    size_t            buf_len
  2919. #endif
  2920. );
  2921.  
  2922. extern
  2923. DTL_EXPORT
  2924. char *
  2925. OS_PASCAL
  2926. DTLgetText(
  2927. #ifdef use_prototypes
  2928. DtlBookId    bid, 
  2929. unsigned long    eid,
  2930. char    buf[],
  2931. int    buf_length
  2932. #endif
  2933. );
  2934.  
  2935. extern
  2936. DTL_EXPORT
  2937. UCSchar16 *
  2938. OS_PASCAL
  2939. DTLwGetText(
  2940. #ifdef use_prototypes
  2941.    DtlBookId        bookId, 
  2942.    unsigned long    elementId,
  2943.    UCSchar16        buf[],
  2944.    size_t            buf_length
  2945. #endif
  2946. );
  2947.  
  2948.  
  2949. extern
  2950. DTL_EXPORT
  2951. char *
  2952. OS_PASCAL
  2953. DTLgetAllText(
  2954. #ifdef use_prototypes
  2955. DtlBookId    bid, 
  2956. unsigned long    eid,
  2957. char    buf[],
  2958. int    buf_length
  2959. #endif
  2960. );
  2961.  
  2962. extern
  2963. DTL_EXPORT
  2964. UCSchar16 *
  2965. OS_PASCAL
  2966. DTLwGetAllText(
  2967. #ifdef use_prototypes
  2968.    DtlBookId        bookId, 
  2969.    unsigned long    elementId,
  2970.    UCSchar16        buf[],
  2971.    size_t            buf_length
  2972. #endif
  2973. );
  2974.  
  2975.  
  2976. /*** Tree Routines ***/
  2977.  
  2978. extern
  2979. DTL_EXPORT
  2980. unsigned long
  2981. OS_PASCAL
  2982. DTLgetParent(
  2983. #ifdef use_prototypes
  2984. DtlBookId    bid, 
  2985. unsigned long    eid
  2986. #endif
  2987. );
  2988.  
  2989. extern
  2990. DTL_EXPORT
  2991. unsigned long
  2992. OS_PASCAL
  2993. DTLgetFirstChild(
  2994. #ifdef use_prototypes
  2995. DtlBookId    bid, 
  2996. unsigned long    eid
  2997. #endif
  2998. );
  2999.  
  3000. extern
  3001. DTL_EXPORT
  3002. unsigned long
  3003. OS_PASCAL
  3004. DTLgetRightSister(
  3005. #ifdef use_prototypes
  3006. DtlBookId    bid, 
  3007. unsigned long    eid
  3008. #endif
  3009. );
  3010.  
  3011. extern
  3012. DTL_EXPORT
  3013. unsigned long
  3014. OS_PASCAL
  3015. DTLgetLeftSister(
  3016. #ifdef use_prototypes
  3017. DtlBookId    bid, 
  3018. unsigned long    eid
  3019. #endif
  3020. );
  3021.  
  3022. extern
  3023. DTL_EXPORT
  3024. unsigned long
  3025. OS_PASCAL
  3026. DTLgetPrev(
  3027. #ifdef use_prototypes
  3028. DtlBookId    bid, 
  3029. unsigned long    eid
  3030. #endif
  3031. );
  3032.  
  3033. extern
  3034. DTL_EXPORT
  3035. unsigned long
  3036. OS_PASCAL
  3037. DTLgetNext(
  3038. #ifdef use_prototypes
  3039. DtlBookId    bid, 
  3040. unsigned long    eid
  3041. #endif
  3042. );
  3043.  
  3044. extern
  3045. DTL_EXPORT
  3046. unsigned long
  3047. OS_PASCAL
  3048. DTLgetNamedChild(
  3049. #ifdef use_prototypes
  3050. DtlBookId    bid, 
  3051. unsigned long    eid,
  3052. char    *childtag
  3053. #endif
  3054. );
  3055.  
  3056. extern
  3057. DTL_EXPORT
  3058. unsigned long
  3059. OS_PASCAL
  3060. DTLgetNamedAncestor(
  3061. #ifdef use_prototypes
  3062. DtlBookId    bid, 
  3063. unsigned long    eid,
  3064. char    *tag
  3065. #endif
  3066. );
  3067.  
  3068. extern
  3069. DTL_EXPORT
  3070. double
  3071. OS_PASCAL
  3072. DTLgetPosition(
  3073. #ifdef use_prototypes
  3074. DtlBookId    bid, 
  3075. unsigned long    root,
  3076. unsigned long    eid
  3077. #endif
  3078. );
  3079.  
  3080. extern
  3081. DTL_EXPORT
  3082. long
  3083. OS_PASCAL
  3084. DTLgetNumElements(
  3085. #ifdef use_prototypes
  3086. DtlBookId    bid, 
  3087. unsigned long    root
  3088. #endif
  3089. );
  3090.  
  3091. extern
  3092. DTL_EXPORT
  3093. unsigned long
  3094. OS_PASCAL
  3095. DTLgetLastElement(
  3096. #ifdef use_prototypes
  3097. DtlBookId    bid, 
  3098. unsigned long    root
  3099. #endif
  3100. );
  3101.  
  3102. #endif /* DTL__SIT_DEFS */
  3103.  
  3104.  
  3105.  
  3106. #ifdef DTL__SIT_DEFS
  3107.  
  3108. /** Query Prototypes
  3109. **/
  3110.  
  3111.  
  3112. /*** Query Routines ***/
  3113. extern
  3114. DTL_EXPORT
  3115. DtlQueryId
  3116. OS_PASCAL
  3117. DTLnewQuery(
  3118. #ifdef use_prototypes
  3119. DtlBookId    bid, 
  3120. char    *query,
  3121. int    options
  3122. #endif
  3123. );
  3124.  
  3125. extern 
  3126. DTL_EXPORT
  3127. DtlQueryId
  3128. OS_PASCAL
  3129. DTLmergeQueries(
  3130. #ifdef use_prototypes
  3131. DtlQueryId qid1, 
  3132. DtlQueryId qid2, 
  3133. int op
  3134. #endif
  3135. );
  3136.  
  3137. extern
  3138. DTL_EXPORT
  3139. DtlQueryId
  3140. OS_PASCAL
  3141. DTLnewFakeQuery(
  3142. #ifdef use_prototypes
  3143. DtlBookId bid, 
  3144. long num_hits, 
  3145. unsigned long eids[]
  3146. #endif
  3147. );
  3148.  
  3149. extern
  3150. DTL_EXPORT
  3151. void
  3152. OS_PASCAL
  3153. DTLcancelQuery(
  3154. #ifdef use_prototypes
  3155. DtlBookId bid
  3156. #endif
  3157. );
  3158.  
  3159. extern
  3160. DTL_EXPORT
  3161. int
  3162. OS_PASCAL
  3163. DTLqueryCancel(
  3164. #ifdef use_prototypes
  3165. DtlBookId bid
  3166. #endif
  3167. );
  3168.  
  3169. extern
  3170. DTL_EXPORT
  3171. void
  3172. OS_PASCAL
  3173. DTLdestroyQuery(
  3174. #ifdef use_prototypes
  3175. DtlQueryId    qid
  3176. #endif
  3177. );
  3178.  
  3179.  
  3180. /*** Update Routines ***/
  3181. /* PHASING OUT AFTER 2.0 */
  3182. int
  3183. OS_PASCAL
  3184. DTLqueryUpdateToc(
  3185. #ifdef use_prototypes
  3186. DtlQueryId    qid,
  3187. DtlBookId    bid,
  3188. int    feedback
  3189. #endif
  3190. );         
  3191.  
  3192. int
  3193. OS_PASCAL
  3194. DTLqueryUpdateTocView(
  3195. #ifdef use_prototypes
  3196. DtlQueryId    qid,
  3197. DtlTocViewId    tid,
  3198. int    feedback
  3199. #endif
  3200. );         
  3201.  
  3202. int
  3203. OS_PASCAL
  3204. DTLqueryUpdateFulltext(
  3205. #ifdef use_prototypes
  3206. DtlQueryId    qid,
  3207. DtlViewId    vid,
  3208. int    redraw
  3209. #endif
  3210. );         
  3211.  
  3212. int
  3213. OS_PASCAL
  3214. DTLqueryUpdateFulltextNext(
  3215. #ifdef use_prototypes
  3216. DtlQueryId    qid,
  3217. DtlViewId    vid,
  3218. int    redraw
  3219. #endif
  3220. );         
  3221.  
  3222. int
  3223. OS_PASCAL
  3224. DTLqueryNextFulltext(
  3225. #ifdef use_prototypes
  3226. DtlQueryId    qid,
  3227. DtlViewId    vid
  3228. #endif
  3229. );         
  3230.  
  3231. int
  3232. OS_PASCAL
  3233. DTLqueryPreviousFulltext(
  3234. #ifdef use_prototypes
  3235. DtlQueryId    qid,
  3236. DtlViewId    vid
  3237. #endif
  3238. );         
  3239.  
  3240. int
  3241. OS_PASCAL
  3242. DTLqueryFirstFulltext(
  3243. #ifdef use_prototypes
  3244. DtlQueryId    qid,
  3245. DtlViewId    vid
  3246. #endif
  3247. );         
  3248.  
  3249. /*** Modify display ***/
  3250. void
  3251. OS_PASCAL
  3252. DTLsetQueryFeedbackMode(
  3253. #ifdef use_prototypes
  3254. DtlContextId id,
  3255. int mode
  3256. #endif
  3257. );
  3258.  
  3259.  
  3260. /*** Generator Routines ***/
  3261. extern
  3262. DTL_EXPORT
  3263. int
  3264. OS_PASCAL
  3265. DTLqueryStartSequence(
  3266. #ifdef use_prototypes
  3267. DtlQueryId    qid
  3268. #endif
  3269. );
  3270.  
  3271. extern
  3272. DTL_EXPORT
  3273. int
  3274. OS_PASCAL
  3275. DTLqueryNextSequence(
  3276. #ifdef use_prototypes
  3277. DtlQueryId    qid,
  3278. unsigned long    *eid1,
  3279. unsigned long    *eid2,
  3280. int    *off1,
  3281. int    *off2
  3282. #endif
  3283. );
  3284.  
  3285. extern
  3286. DTL_EXPORT
  3287. long
  3288. OS_PASCAL
  3289. DTLqueryGetFreq(
  3290. #ifdef use_prototypes
  3291. DtlQueryId    qid,
  3292. unsigned long    eid
  3293. #endif
  3294. );
  3295.  
  3296. #endif /* DTL__SIT_DEFS */
  3297.  
  3298.  
  3299.  
  3300. #ifdef DTL__SIT_DEFS 
  3301.  
  3302. /** DTL Library Level Querying
  3303. Library Level Querying:
  3304. **/
  3305.  
  3306. extern
  3307. DTL_EXPORT
  3308. DtlLibQueryId
  3309. OS_PASCAL
  3310. DTLnewLibQuery(
  3311. #ifdef use_prototypes
  3312. DtlContextId    id,
  3313. char    *dbase,
  3314. char    *query,
  3315. long    options
  3316. #endif
  3317. );
  3318.  
  3319. extern 
  3320. DTL_EXPORT
  3321. long
  3322. OS_PASCAL
  3323. DTLlibQuery(
  3324. #ifdef use_prototypes
  3325. DtlLibQueryId qid,
  3326. char *dbase,
  3327. char *book,
  3328. long flags        
  3329. #endif
  3330. );
  3331.  
  3332. extern 
  3333. DTL_EXPORT
  3334. void
  3335. OS_PASCAL
  3336. DTLdestroyLibQuery(
  3337. #ifdef use_prototypes
  3338. DtlLibQueryId    qid
  3339. #endif
  3340. );
  3341.  
  3342. #endif /* DTL__SIT_DEFS */
  3343.  
  3344.  
  3345.  
  3346. #ifdef DTL__SIT_DEFS 
  3347.  
  3348. /** Annotation Prototypes
  3349. **/
  3350.  
  3351. extern 
  3352. DTL_EXPORT
  3353. int
  3354. OS_PASCAL
  3355. DTLclearAnnotations(
  3356. #ifdef use_prototypes
  3357. DtlBookId bid
  3358. #endif
  3359. );
  3360.  
  3361. extern 
  3362. DTL_EXPORT
  3363. int
  3364. OS_PASCAL
  3365. DTLaddAnnotation(
  3366. #ifdef use_prototypes
  3367. DtlBookId bid, unsigned long element, char *title,
  3368. int genre, char *ascript, char *script, char *parms
  3369. #endif
  3370. );
  3371.  
  3372. extern 
  3373. DTL_EXPORT
  3374. int
  3375. OS_PASCAL
  3376. DTLdeleteAnnotation(
  3377. #ifdef use_prototypes
  3378. DtlBookId bid, unsigned long element, char *title
  3379. #endif
  3380. );
  3381.  
  3382.  
  3383. extern 
  3384. DTL_EXPORT
  3385. int
  3386. OS_PASCAL
  3387. DTLsaveAnnotations(
  3388. #ifdef use_prototypes
  3389. DtlBookId bid, int genre, char *path
  3390. #endif
  3391. );
  3392.  
  3393. extern 
  3394. DTL_EXPORT
  3395. int
  3396. OS_PASCAL
  3397. DTLloadAnnotations(
  3398. #ifdef use_prototypes
  3399. DtlBookId bid, char *path
  3400. #endif
  3401. );
  3402.  
  3403. extern 
  3404. DTL_EXPORT
  3405. int
  3406. OS_PASCAL
  3407. DTLstartAnnotationSequence(
  3408. #ifdef use_prototypes
  3409. DtlBookId bid, unsigned long element
  3410. #endif
  3411. );
  3412.  
  3413. extern 
  3414. DTL_EXPORT
  3415. int
  3416. OS_PASCAL
  3417. DTLnextAnnotationSequence(
  3418. #ifdef use_prototypes
  3419. DtlBookId bid, 
  3420. DtlAnnotStruct *rec
  3421. #endif
  3422. );
  3423.  
  3424. extern 
  3425. DTL_EXPORT
  3426. int
  3427. OS_PASCAL
  3428. DTLgetAnnotationInfo(
  3429. #ifdef use_prototypes
  3430. DtlBookId bid, DtlAnnotStruct *rec, 
  3431. unsigned long eid, int num
  3432. #endif
  3433. );
  3434.  
  3435. extern 
  3436. DTL_EXPORT
  3437. int
  3438. OS_PASCAL
  3439. DTLstartFullAnnotationSequence(
  3440. #ifdef use_prototypes
  3441. DtlBookId bookId
  3442. #endif
  3443. );
  3444.  
  3445. extern 
  3446. DTL_EXPORT
  3447. int
  3448. OS_PASCAL
  3449. DTLnextFullAnnotationSequence(
  3450. #ifdef use_prototypes
  3451. DtlBookId bookId,
  3452. unsigned long *eid,
  3453. DtlAnnotStruct *annotationStruct
  3454. #endif
  3455. );
  3456.  
  3457. #endif /* DTL__SIT_DEFS */
  3458.  
  3459. extern 
  3460. DTL_EXPORT
  3461. int
  3462. OS_PASCAL
  3463. DTLaddAnnotationAsUser(
  3464. #ifdef use_prototypes
  3465. DtlViewId vid, 
  3466. unsigned long eid, 
  3467. char *title, 
  3468. int genre, 
  3469. char *ascript
  3470. #endif
  3471. );
  3472.  
  3473.  
  3474. /** DtlTocView Routines
  3475. **/
  3476.  
  3477. #ifdef DTL__SIT_DEFS
  3478.  
  3479.  
  3480. extern
  3481. DTL_EXPORT
  3482. DtlTocViewId
  3483. OS_PASCAL
  3484. DTLnewTocViewFromGUI(
  3485. #ifdef use_prototypes
  3486. DtlBookId    bid,
  3487. DtlGuiId    parent,
  3488. char    *viewname,
  3489. unsigned long root,
  3490. DtlTocViewCallbackProc    close_cb,
  3491. Up    data,
  3492. long    flags
  3493. #endif
  3494. );
  3495.  
  3496. extern
  3497. DTL_EXPORT
  3498. DtlGuiId
  3499. OS_PASCAL
  3500. DTLinqTocViewGUI(
  3501. #ifdef use_prototypes
  3502. DtlTocViewId    tid
  3503. #endif
  3504. );
  3505.  
  3506. #ifdef DTL__X_DEFS
  3507.  
  3508. /* PHASING OUT AFTER 2.0 */
  3509. extern
  3510. DTL_EXPORT
  3511. DtlTocViewId
  3512. OS_PASCAL
  3513. DTLnewTocViewFromX(
  3514. #ifdef use_prototypes
  3515. DtlBookId    bid,
  3516. Widget    parent,
  3517. char    *viewname,
  3518. unsigned long root,
  3519. DtlTocViewCallbackProc    close_cb,
  3520. Up    data,
  3521. long    flags
  3522. #endif
  3523. );
  3524.  
  3525. /* PHASING OUT AFTER 2.0 */
  3526. extern
  3527. DTL_EXPORT
  3528. Widget
  3529. OS_PASCAL
  3530. DTLinqTocViewWidget(
  3531. #ifdef use_prototypes
  3532. DtlTocViewId    tid
  3533. #endif
  3534. );
  3535.  
  3536. #endif /* DTL__X_DEFS */
  3537.  
  3538. #ifdef DTL__WINDOWS_DEFS
  3539.  
  3540. /* PHASING OUT AFTER 2.0 */
  3541. extern
  3542. DTL_EXPORT
  3543. DtlTocViewId
  3544. OS_PASCAL
  3545. DTLnewTocViewFromWindows(
  3546. #ifdef use_prototypes
  3547. DtlBookId    bid,
  3548. HWND    parent,
  3549. char    *viewname,
  3550. unsigned long root,
  3551. DtlTocViewCallbackProc    close_cb,
  3552. Up    data,
  3553. long    flags
  3554. #endif
  3555. );
  3556.  
  3557. /* PHASING OUT AFTER 2.0 */
  3558. extern
  3559. DTL_EXPORT
  3560. HWND
  3561. OS_PASCAL
  3562. DTLinqTocViewHWND(
  3563. #ifdef use_prototypes
  3564. DtlTocViewId    tid
  3565. #endif
  3566. );
  3567.  
  3568. #endif /* DTL__WINDOWS_DEFS */
  3569.  
  3570. #endif /* DTL__SIT_DEFS */
  3571.  
  3572. extern 
  3573. DTL_EXPORT
  3574. void
  3575. OS_PASCAL
  3576. DTLdestroyTocView(
  3577. #ifdef use_prototypes
  3578. DtlTocViewId    tid
  3579. #endif
  3580. );
  3581.  
  3582. extern
  3583. DTL_EXPORT
  3584. DtlBookId
  3585. OS_PASCAL
  3586. DTLinqTocViewBook(
  3587. #ifdef use_prototypes
  3588. DtlTocViewId    tid
  3589. #endif
  3590. );
  3591.  
  3592. extern
  3593. DTL_EXPORT
  3594. int
  3595. OS_PASCAL
  3596. DTLtocViewReloadStyleSheet(
  3597. #ifdef use_prototypes
  3598. DtlTocViewId tvid
  3599. #endif
  3600. );
  3601.  
  3602. extern
  3603. DTL_EXPORT
  3604. int
  3605. OS_PASCAL
  3606. DTLflushStyleSheetCache(
  3607. #ifdef use_prototypes
  3608. DtlContextId id
  3609. #endif
  3610. );
  3611.  
  3612. extern
  3613. DTL_EXPORT
  3614. int
  3615. OS_PASCAL
  3616. DTLresetTocView(
  3617. #ifdef use_prototypes
  3618. DtlTocViewId    tid,
  3619. unsigned long root_element,
  3620. char    *viewname
  3621. #endif
  3622. );
  3623.  
  3624. extern
  3625. DTL_EXPORT
  3626. int
  3627. OS_PASCAL
  3628. DTLaddTocViewCallback(
  3629. #ifdef use_prototypes
  3630. DtlTocViewId    tid,
  3631. int    which,
  3632. DtlTocViewCallbackProc    close_cb,
  3633. Up    user_data
  3634. #endif
  3635. );
  3636.  
  3637. extern
  3638. DTL_EXPORT
  3639. int
  3640. OS_PASCAL
  3641. DTLinqTocViewCallback(
  3642. #ifdef use_prototypes
  3643. DtlTocViewId        tid,
  3644. int            which,
  3645. DtlTocViewCallbackProc    *close_cb,
  3646. Up            *user_data
  3647. #endif
  3648. );
  3649.  
  3650. extern
  3651. DTL_EXPORT
  3652. long
  3653. OS_PASCAL
  3654. DTLgetTocSize(
  3655. #ifdef use_prototypes
  3656. DtlTocViewId tid
  3657. #endif
  3658. );
  3659.  
  3660. extern
  3661. DTL_EXPORT
  3662. int
  3663. OS_PASCAL
  3664. DTLgetTocLevel(
  3665. #ifdef use_prototypes
  3666. DtlTocViewId tid,
  3667. long    idx
  3668. #endif
  3669. );
  3670.  
  3671. extern
  3672. DTL_EXPORT
  3673. unsigned long
  3674. OS_PASCAL
  3675. DTLgetTocElement(
  3676. #ifdef use_prototypes
  3677. DtlTocViewId tid,
  3678. long    idx
  3679. #endif
  3680. );
  3681.  
  3682. extern
  3683. DTL_EXPORT
  3684. long
  3685. OS_PASCAL
  3686. DTLgetTocRecord(
  3687. #ifdef use_prototypes
  3688. DtlTocViewId tid,
  3689. unsigned long    eid
  3690. #endif
  3691. );
  3692.  
  3693. extern
  3694. DTL_EXPORT
  3695. char *
  3696. OS_PASCAL
  3697. DTLgetTocRecordText(
  3698. #ifdef use_prototypes
  3699. DtlTocViewId tid,
  3700. long    entry,
  3701. char  buf[],
  3702. int   buf_size
  3703. #endif
  3704. );
  3705.  
  3706. extern
  3707. DTL_EXPORT
  3708. long
  3709. OS_PASCAL
  3710. DTLgetTocActiveRecord(
  3711. #ifdef use_prototypes
  3712. DtlTocViewId tid
  3713. #endif
  3714. );
  3715.  
  3716. extern 
  3717. DTL_EXPORT
  3718. int
  3719. OS_PASCAL
  3720. DTLsetTocActiveSection(
  3721. #ifdef use_prototypes
  3722. DtlTocViewId tid,
  3723. unsigned long    eid
  3724. #endif
  3725. );
  3726.  
  3727. extern
  3728. DTL_EXPORT
  3729. int
  3730. OS_PASCAL
  3731. DTLexpandToc(
  3732. #ifdef use_prototypes
  3733. DtlTocViewId tid,
  3734. long    idx
  3735. #endif
  3736. );
  3737.  
  3738. extern
  3739. DTL_EXPORT
  3740. int
  3741. OS_PASCAL
  3742. DTLcollapseToc(
  3743. #ifdef use_prototypes
  3744. DtlTocViewId tid,
  3745. long    idx
  3746. #endif
  3747. );
  3748.  
  3749. extern
  3750. DTL_EXPORT
  3751. long
  3752. OS_PASCAL
  3753. DTLgetTocTop(
  3754. #ifdef use_prototypes
  3755. DtlTocViewId tid
  3756. #endif
  3757. );
  3758.  
  3759. extern
  3760. DTL_EXPORT
  3761. long
  3762. OS_PASCAL
  3763. DTLgetTocBottom(
  3764. #ifdef use_prototypes
  3765. DtlTocViewId tid
  3766. #endif
  3767. );
  3768.  
  3769. extern
  3770. DTL_EXPORT
  3771. int
  3772. OS_PASCAL
  3773. DTLscrollToc(    
  3774. #ifdef use_prototypes
  3775. DtlTocViewId tid,
  3776. long    idx
  3777. #endif
  3778. );
  3779.  
  3780. extern 
  3781. DTL_EXPORT
  3782. int
  3783. OS_PASCAL
  3784. DTLscrollTocToElement(
  3785. #ifdef use_prototypes
  3786. DtlTocViewId tid, 
  3787. unsigned long eid
  3788. #endif
  3789. );
  3790.  
  3791.  
  3792. #ifdef DTL__SIT_DEFS
  3793.  
  3794. extern
  3795. DTL_EXPORT
  3796. int
  3797. OS_PASCAL
  3798. DTLgetTocSelectionStatus(
  3799. #ifdef use_prototypes
  3800. DtlTocViewId tid
  3801. #endif
  3802. );
  3803.  
  3804. extern
  3805. DTL_EXPORT
  3806. int
  3807. OS_PASCAL
  3808. DTLsetTocViewMode(
  3809. #ifdef use_prototypes
  3810. DtlTocViewId tvid,
  3811. int mode,
  3812. int method
  3813. #endif
  3814. );
  3815.  
  3816. extern
  3817. DTL_EXPORT
  3818. int
  3819. OS_PASCAL
  3820. DTLinqTocViewMode(
  3821. #ifdef use_prototypes
  3822. DtlTocViewId tvid,
  3823. int mode
  3824. #endif
  3825. );
  3826.  
  3827. extern
  3828. DTL_EXPORT
  3829. int
  3830. OS_PASCAL
  3831. DTLremoveTocViewScrollbars(
  3832. #ifdef use_prototypes
  3833. DtlTocViewId tvid
  3834. #endif
  3835. );
  3836.  
  3837. extern
  3838. DTL_EXPORT
  3839. int
  3840. OS_PASCAL
  3841. DTLscrollTocViewUp(
  3842. #ifdef use_prototypes
  3843. DtlTocViewId tvid
  3844. #endif
  3845. );
  3846.  
  3847. extern
  3848. DTL_EXPORT
  3849. int
  3850. OS_PASCAL
  3851. DTLscrollTocViewDown(
  3852. #ifdef use_prototypes
  3853. DtlTocViewId tvid
  3854. #endif
  3855. );
  3856.  
  3857. extern
  3858. DTL_EXPORT
  3859. int
  3860. OS_PASCAL
  3861. DTLlineScrollTocViewUp(
  3862. #ifdef use_prototypes
  3863. DtlTocViewId tvid
  3864. #endif
  3865. );
  3866.  
  3867. extern
  3868. DTL_EXPORT
  3869. int
  3870. OS_PASCAL
  3871. DTLlineScrollTocViewDown(
  3872. #ifdef use_prototypes
  3873. DtlTocViewId tvid
  3874. #endif
  3875. );
  3876.  
  3877. #endif /* DTL__SIT_DEFS */
  3878.  
  3879.  
  3880. extern
  3881. DTL_EXPORT
  3882. int
  3883. OS_PASCAL
  3884. DTLmapTocView(
  3885. #ifdef use_prototypes
  3886. DtlTocViewId tid
  3887. #endif
  3888. );
  3889.  
  3890. extern
  3891. DTL_EXPORT
  3892. int
  3893. OS_PASCAL
  3894. DTLunmapTocView(
  3895. #ifdef use_prototypes
  3896. DtlTocViewId tid
  3897. #endif
  3898. );
  3899.  
  3900. extern
  3901. DTL_EXPORT
  3902. int
  3903. OS_PASCAL
  3904. DTLenableTocView(
  3905. #ifdef use_prototypes
  3906. DtlTocViewId tid,
  3907. int          on_or_off
  3908. #endif           
  3909. );
  3910.  
  3911. extern
  3912. DTL_EXPORT
  3913. int
  3914. OS_PASCAL
  3915. DTLraiseTocView(
  3916. #ifdef use_prototypes
  3917. DtlTocViewId tid
  3918. #endif
  3919. );
  3920.  
  3921. extern
  3922. DTL_EXPORT
  3923. void
  3924. OS_PASCAL
  3925. DTLstartTocViewWait(
  3926. #ifdef use_prototypes
  3927. DtlTocViewId tid
  3928. #endif
  3929. );
  3930.  
  3931. extern
  3932. DTL_EXPORT
  3933. void
  3934. OS_PASCAL
  3935. DTLendTocViewWait(
  3936. #ifdef use_prototypes
  3937. DtlTocViewId tid
  3938. #endif
  3939. );
  3940.  
  3941. extern
  3942. DTL_EXPORT
  3943. int
  3944. OS_PASCAL
  3945. DTLcopyToc(
  3946. #ifdef use_prototypes
  3947. DtlTocViewId tid,
  3948. int    mode
  3949. #endif
  3950. );
  3951.  
  3952. extern
  3953. DTL_EXPORT
  3954. int
  3955. OS_PASCAL
  3956. DTLsetTocMode(
  3957. #ifdef use_prototypes
  3958. DtlTocViewId tid,
  3959. int    mode
  3960. #endif
  3961. );
  3962.  
  3963. extern
  3964. DTL_EXPORT
  3965. int
  3966. OS_PASCAL
  3967. DTLsetTocViewZoomFactor(
  3968. #ifdef use_prototypes
  3969. DtlTocViewId vid,
  3970. double    zoom_factor
  3971. #endif
  3972. );
  3973.  
  3974. extern
  3975. DTL_EXPORT
  3976. int
  3977. OS_PASCAL
  3978. DTLzoomTocView(
  3979. #ifdef use_prototypes
  3980. DtlTocViewId tvid,
  3981. double zoom_factor
  3982. #endif
  3983. );
  3984.  
  3985. extern
  3986. DTL_EXPORT
  3987. int
  3988. OS_PASCAL
  3989. DTLgenerateTocSelections(
  3990. #ifdef use_prototypes
  3991. DtlTocViewId tvid, 
  3992. DtlTocViewGeneratorProc cb, 
  3993. Up data
  3994. #endif
  3995. );
  3996.  
  3997. extern 
  3998. DTL_EXPORT
  3999. int
  4000. OS_PASCAL
  4001. DTLselectTocRecord(
  4002. #ifdef use_prototypes
  4003. DtlTocViewId tvid, long idx, int on_or_off
  4004. #endif
  4005. );
  4006.  
  4007. extern 
  4008. DTL_EXPORT
  4009. int
  4010. OS_PASCAL
  4011. DTLselectTocElement(
  4012. #ifdef use_prototypes
  4013. DtlTocViewId tvid, unsigned long eid, int on_or_off
  4014. #endif
  4015. );
  4016.  
  4017. #ifdef DTL__SIT_DEFS
  4018.  
  4019.  
  4020. /** Print System Prototypes
  4021. **/
  4022.  
  4023. extern
  4024. DTL_EXPORT
  4025. DtlPrintId
  4026. OS_PASCAL
  4027. DTLnewPrintContext(
  4028. #ifdef use_prototypes
  4029. DtlBookId    bid,
  4030. char    *stylesheet,
  4031. FILE    *fp
  4032. #endif
  4033. );
  4034.  
  4035. extern
  4036. DTL_EXPORT
  4037. void
  4038. OS_PASCAL
  4039. DTLprintCancel(
  4040. #ifdef use_prototypes
  4041. DtlPrintId printContextId
  4042. #endif
  4043. );
  4044.  
  4045. extern
  4046. DTL_EXPORT
  4047. int
  4048. OS_PASCAL
  4049. DTLprintElement(
  4050. #ifdef use_prototypes
  4051. DtlPrintId    pid,
  4052. unsigned long    eid,
  4053. int    flags
  4054. #endif
  4055. );
  4056.  
  4057. extern
  4058. DTL_EXPORT
  4059. int
  4060. OS_PASCAL
  4061. DTLprintGraphic(
  4062. #ifdef use_prototypes
  4063. DtlPrintId    pid,
  4064. char    *parameters
  4065. #endif
  4066. );
  4067.  
  4068. extern
  4069. DTL_EXPORT
  4070. int
  4071. OS_PASCAL
  4072. DTLprintGraphicImage(
  4073. #ifdef use_prototypes
  4074. DtlPrintId    pid,
  4075. char    *parameters,
  4076. int    gtype
  4077. #endif
  4078. );
  4079.  
  4080. extern
  4081. DTL_EXPORT
  4082. void
  4083. OS_PASCAL
  4084. DTLdestroyPrintContext(
  4085. #ifdef use_prototypes
  4086. DtlPrintId    pid
  4087. #endif
  4088. );
  4089.  
  4090. extern
  4091. DTL_EXPORT
  4092. int
  4093. OS_PASCAL
  4094. DTLprintControl(
  4095. #ifdef use_prototypes
  4096. DtlPrintId    pid,
  4097. long        flags
  4098. #endif
  4099. );
  4100.  
  4101. /* PHASING OUT AFTER 2.0 */
  4102. extern
  4103. DTL_EXPORT
  4104. int
  4105. OS_PASCAL
  4106. DTLprintSections(
  4107. #ifdef use_prototypes
  4108. DtlBookId    bid,
  4109. char    *stylesheet,
  4110. FILE    *fp
  4111. #endif
  4112. );
  4113.  
  4114. extern
  4115. DTL_EXPORT
  4116. int
  4117. OS_PASCAL
  4118. DTLprintTocViewSections(
  4119. #ifdef use_prototypes
  4120. DtlTocViewId    tid,
  4121. char    *stylesheet,
  4122. FILE    *fp
  4123. #endif
  4124. );
  4125.  
  4126. extern
  4127. DTL_EXPORT
  4128. int
  4129. OS_PASCAL
  4130. DTLprintViewSections(
  4131. #ifdef use_prototypes
  4132. DtlViewId vid
  4133. #endif
  4134. );
  4135.  
  4136.  
  4137. #endif /* DTL__SIT_DEFS */
  4138.  
  4139.  
  4140.  
  4141.  
  4142.  
  4143. #ifdef DTL__SIT_DEFS
  4144.  
  4145.  
  4146. /** History Prototypes
  4147. **/
  4148.  
  4149.  
  4150. /*** Main Routines ***/
  4151.  
  4152. extern
  4153. DTL_EXPORT
  4154. DtlHistoryId
  4155. OS_PASCAL
  4156. DTLnewHistory(
  4157. #ifdef use_prototypes
  4158. DtlContextId    id,
  4159. int    max_size
  4160. #endif
  4161. );
  4162.  
  4163. extern
  4164. DTL_EXPORT
  4165. int
  4166. OS_PASCAL
  4167. DTLmapHistory(
  4168. #ifdef use_prototypes
  4169. DtlHistoryId    id
  4170. #endif
  4171. );
  4172.  
  4173. extern
  4174. DTL_EXPORT
  4175. int
  4176. OS_PASCAL
  4177. DTLunmapHistory(
  4178. #ifdef use_prototypes
  4179. DtlHistoryId    id
  4180. #endif
  4181. );
  4182.  
  4183. extern
  4184. DTL_EXPORT
  4185. int
  4186. OS_PASCAL
  4187. DTLraiseHistory(
  4188. #ifdef use_prototypes
  4189. DtlHistoryId    id
  4190. #endif
  4191. );
  4192.  
  4193. extern
  4194. DTL_EXPORT
  4195. void
  4196. OS_PASCAL
  4197. DTLdestroyHistory(
  4198. #ifdef use_prototypes
  4199. DtlHistoryId    hid
  4200. #endif
  4201. );
  4202.  
  4203.  
  4204. /*** Edit Routines ***/
  4205.  
  4206. extern
  4207. DTL_EXPORT
  4208. int
  4209. OS_PASCAL
  4210. DTLaddHistoryItem(
  4211. #ifdef use_prototypes
  4212. DtlHistoryId hid,
  4213. int    pos,
  4214. DtlViewId    vid,
  4215. unsigned long eid,
  4216. char    *title
  4217. #endif
  4218. );
  4219.  
  4220. extern 
  4221. DTL_EXPORT
  4222. int
  4223. OS_PASCAL
  4224. DTLdeleteHistoryItem(
  4225. #ifdef use_prototypes
  4226. DtlHistoryId hid,
  4227. int    pos
  4228. #endif
  4229. );
  4230.  
  4231. extern
  4232. DTL_EXPORT
  4233. int
  4234. OS_PASCAL
  4235. DTLloadHistory(
  4236. #ifdef use_prototypes
  4237. DtlHistoryId hid,
  4238. char *path
  4239. #endif
  4240. );
  4241.  
  4242. extern
  4243. DTL_EXPORT
  4244. int
  4245. OS_PASCAL
  4246. DTLsaveHistory(
  4247. #ifdef use_prototypes
  4248. DtlHistoryId hid,
  4249. char *path
  4250. #endif
  4251. );
  4252.  
  4253. /*** Action Routines ***/
  4254.  
  4255. extern
  4256. DTL_EXPORT
  4257. int
  4258. OS_PASCAL
  4259. DTLtoggleHistory(
  4260. #ifdef use_prototypes
  4261. DtlHistoryId    hid,
  4262. int    on_or_off
  4263. #endif
  4264. );
  4265.  
  4266. extern
  4267. DTL_EXPORT
  4268. long
  4269. OS_PASCAL
  4270. DTLinqHistorySerialNumber(
  4271. #ifdef use_prototypes
  4272. DtlHistoryId    hid
  4273. #endif
  4274. );
  4275.  
  4276. extern
  4277. DTL_EXPORT
  4278. int
  4279. OS_PASCAL
  4280. DTLinqHistorySize(
  4281. #ifdef use_prototypes
  4282. DtlHistoryId    hid
  4283. #endif
  4284. );
  4285.  
  4286. extern
  4287. DTL_EXPORT
  4288. char *
  4289. OS_PASCAL
  4290. DTLinqHistoryBook(
  4291. #ifdef use_prototypes
  4292. DtlHistoryId    hid,
  4293. int    which
  4294. #endif
  4295. );
  4296.  
  4297. extern
  4298. DTL_EXPORT
  4299. char *
  4300. OS_PASCAL
  4301. DTLinqHistoryView(
  4302. #ifdef use_prototypes
  4303. DtlHistoryId    hid,
  4304. int    which
  4305. #endif
  4306. );
  4307.  
  4308. extern
  4309. DTL_EXPORT
  4310. unsigned long 
  4311. OS_PASCAL
  4312. DTLinqHistoryRoot(
  4313. #ifdef use_prototypes
  4314. DtlHistoryId    hid,
  4315. int    which
  4316. #endif
  4317. );
  4318.  
  4319. extern
  4320. DTL_EXPORT
  4321. unsigned long
  4322. OS_PASCAL
  4323. DTLinqHistoryElement(
  4324. #ifdef use_prototypes
  4325. DtlHistoryId    hid,
  4326. int    which
  4327. #endif
  4328. );
  4329.  
  4330.  
  4331. extern
  4332. OS_CONST
  4333. DTL_EXPORT
  4334. char *
  4335. OS_PASCAL
  4336. DTLinqHistoryTitle(
  4337. #ifdef use_prototypes
  4338. DtlHistoryId      hid,
  4339. int           index
  4340. #endif
  4341. );
  4342.  
  4343.  
  4344. #endif /* DTL__SIT_DEFS */
  4345.  
  4346.  
  4347.  
  4348. /** View Prototypes
  4349. We specify the routines with a DTL view.
  4350. **/
  4351.  
  4352. /*** Main Routines ***/
  4353. extern
  4354. DTL_EXPORT
  4355. DtlViewId
  4356. OS_PASCAL
  4357. DTLnewView(
  4358. #ifdef use_prototypes
  4359. DtlBookId    bid,
  4360. char    *name,
  4361. char    *title,
  4362. char    *viewname,
  4363. unsigned long root_element,
  4364. DtlViewCallbackProc    close_callback,
  4365. Up    user_data,
  4366. long    flags
  4367. #endif
  4368. );
  4369.  
  4370. #ifdef DTL__SIT_DEFS
  4371.  
  4372. extern
  4373. DTL_EXPORT
  4374. DtlViewId
  4375. OS_PASCAL
  4376. DTLnewViewFromGUI(
  4377. #ifdef use_prototypes
  4378. DtlBookId    bid,
  4379. DtlGuiId    gui,
  4380. char    *viewname,
  4381. unsigned long root_element,
  4382. DtlViewCallbackProc    close_callback,
  4383. Up    user_data,
  4384. long    flags
  4385. #endif
  4386. );
  4387.  
  4388. extern
  4389. DTL_EXPORT
  4390. int
  4391. OS_PASCAL
  4392. DTLisViewFromGUI(
  4393. #ifdef use_prototypes
  4394. DtlViewId    viewId
  4395. #endif
  4396. );
  4397.  
  4398.  
  4399. #ifdef DTL__X_DEFS
  4400.  
  4401. /* PHASING OUT AFTER 2.0 */
  4402. extern
  4403. DTL_EXPORT
  4404. DtlViewId
  4405. OS_PASCAL
  4406. DTLnewViewFromX(
  4407. #ifdef use_prototypes
  4408. DtlBookId    bid,
  4409. Widget    parent,
  4410. char    *viewname,
  4411. unsigned long root_element,
  4412. DtlViewCallbackProc    close_callback,
  4413. Up    user_data,
  4414. long    flags
  4415. #endif
  4416. );
  4417.  
  4418. /* PHASING OUT AFTER 2.0 */
  4419. extern
  4420. DTL_EXPORT
  4421. Widget
  4422. OS_PASCAL
  4423. DTLinqViewWidget(
  4424. #ifdef use_prototypes
  4425. DtlViewId    vid
  4426. #endif
  4427. );
  4428.  
  4429.  
  4430. extern
  4431. DTL_EXPORT
  4432. DtlViewId
  4433. OS_PASCAL
  4434. DTLnewCustomViewFromX(
  4435. #ifdef use_prototypes
  4436.              Widget parent,
  4437.              DtlBookId bid,
  4438.              char *name,
  4439.              char *title,
  4440.              char *viewname,
  4441.              char *tocViewName,
  4442.              unsigned long root_element, 
  4443.              DtlViewLayout viewLayout,
  4444.              long flags
  4445. #endif
  4446. );
  4447.  
  4448.  
  4449. #endif /* DTL__X_DEFS */
  4450.  
  4451. #ifdef DTL__WINDOWS_DEFS
  4452.  
  4453.  
  4454. /* PHASING OUT AFTER 2.0 */
  4455. extern
  4456. DTL_EXPORT
  4457. DtlViewId
  4458. OS_PASCAL
  4459. DTLnewViewFromWindows(
  4460. #ifdef use_prototypes
  4461. DtlBookId    bid,
  4462. HWND    parent,
  4463. char    *viewname,
  4464. unsigned long root_element,
  4465. DtlViewCallbackProc    close_callback,
  4466. Up    user_data,
  4467. long    flags
  4468. #endif
  4469. );
  4470.  
  4471. /* PHASING OUT AFTER 2.0 */
  4472. extern
  4473. DTL_EXPORT
  4474. HWND
  4475. OS_PASCAL
  4476. DTLinqViewHWND(
  4477. #ifdef use_prototypes
  4478. DtlViewId    vid
  4479. #endif
  4480. );
  4481.  
  4482. #endif /* DTL__WINDOWS_DEFS */
  4483.  
  4484. #endif /* DTL__SIT_DEFS */
  4485.  
  4486.  
  4487. extern
  4488. DTL_EXPORT
  4489. int
  4490. OS_PASCAL
  4491. DTLviewSetBook(
  4492. #ifdef use_prototypes
  4493. DtlViewId vid,
  4494. DtlBookId bid,
  4495. unsigned long root,
  4496. char *stylesheet,
  4497. char *toc_stylesheet
  4498. #endif
  4499. );
  4500.  
  4501. extern
  4502. DTL_EXPORT
  4503. int
  4504. OS_PASCAL
  4505. DTLviewSetTitle(
  4506. #ifdef use_prototypes
  4507. DtlViewId vid,
  4508. char *title
  4509. #endif
  4510. );
  4511.  
  4512. extern
  4513. DTL_EXPORT
  4514. int
  4515. OS_PASCAL
  4516. DTLviewReloadStyleSheet(
  4517. #ifdef use_prototypes
  4518. DtlViewId vid
  4519. #endif
  4520. );
  4521.  
  4522. extern
  4523. DTL_EXPORT
  4524. int
  4525. OS_PASCAL
  4526. DTLresetView(
  4527. #ifdef use_prototypes
  4528. DtlViewId vid, 
  4529. unsigned long root, 
  4530. char *stylesheet
  4531. #endif
  4532. );
  4533.  
  4534. extern
  4535. DTL_EXPORT
  4536. int
  4537. OS_PASCAL
  4538. DTLresetRevelatoryView(
  4539. #ifdef use_prototypes
  4540. DtlViewId vid, 
  4541. int    revelatory
  4542. #endif
  4543. );
  4544.  
  4545. extern
  4546. DTL_EXPORT
  4547. int
  4548. OS_PASCAL
  4549. DTLresetViewToc(
  4550. #ifdef use_prototypes
  4551. DtlViewId vid, 
  4552. unsigned long root, 
  4553. char *viewname
  4554. #endif
  4555. );
  4556.  
  4557. extern
  4558. DTL_EXPORT
  4559. void
  4560. OS_PASCAL
  4561. DTLdestroyView(
  4562. #ifdef use_prototypes
  4563. DtlViewId    vid
  4564. #endif
  4565. );
  4566.  
  4567.  
  4568. /*** Edit Routines ***/
  4569. extern
  4570. DTL_EXPORT
  4571. int
  4572. OS_PASCAL
  4573. DTLsetViewMode(
  4574. #ifdef use_prototypes
  4575. DtlViewId vid,
  4576. int    mode
  4577. #endif
  4578. );
  4579.  
  4580. extern
  4581. DTL_EXPORT
  4582. int
  4583. OS_PASCAL
  4584. DTLcopyView(
  4585. #ifdef use_prototypes
  4586. DtlViewId vid,
  4587. int    mode
  4588. #endif
  4589. );
  4590.  
  4591. extern
  4592. DTL_EXPORT
  4593. int
  4594. OS_PASCAL
  4595. DTLgetViewSelection(
  4596. #ifdef use_prototypes
  4597. DtlViewId vid,
  4598. unsigned long *eid1,
  4599. long    *offset1,
  4600. unsigned long *eid2,
  4601. long *offset2
  4602. #endif
  4603. );
  4604.  
  4605. extern
  4606. DTL_EXPORT
  4607. int
  4608. OS_PASCAL
  4609. DTLsetViewSelection(
  4610. #ifdef use_prototypes
  4611. DtlViewId vid,
  4612. unsigned long eid1,
  4613. long    offset1,
  4614. unsigned long eid2,
  4615. long offset2
  4616. #endif
  4617. );
  4618.  
  4619. extern
  4620. DTL_EXPORT
  4621. int
  4622. OS_PASCAL
  4623. DTLsetViewZoomFactor(
  4624. #ifdef use_prototypes
  4625. DtlViewId vid,
  4626. double    zoom_factor
  4627. #endif
  4628. );
  4629.  
  4630. extern
  4631. DTL_EXPORT
  4632. int
  4633. OS_PASCAL
  4634. DTLzoomView(
  4635. #ifdef use_prototypes
  4636. DtlViewId vid,
  4637. double    zoom_factor
  4638. #endif
  4639. );
  4640.  
  4641. /*** Interface Routines ***/
  4642. extern
  4643. DTL_EXPORT
  4644. int
  4645. OS_PASCAL
  4646. DTLmapView(
  4647. #ifdef use_prototypes
  4648. DtlViewId    vid
  4649. #endif
  4650. );
  4651.  
  4652. extern 
  4653. DTL_EXPORT
  4654. int
  4655. OS_PASCAL
  4656. DTLmapViewWithToc(
  4657. #ifdef use_prototypes
  4658.    DtlViewId viewId,
  4659.    int       showtoc
  4660. #endif
  4661. );
  4662.  
  4663. extern
  4664. DTL_EXPORT
  4665. int
  4666. OS_PASCAL
  4667. DTLunmapView(
  4668. #ifdef use_prototypes
  4669. DtlViewId    vid
  4670. #endif
  4671. );
  4672.  
  4673. extern
  4674. DTL_EXPORT
  4675. int
  4676. OS_PASCAL
  4677. DTLenableView(
  4678. #ifdef use_prototypes
  4679. DtlViewId   vid,
  4680. int         on_or_off
  4681. #endif           
  4682. );
  4683.  
  4684. extern
  4685. DTL_EXPORT
  4686. int
  4687. OS_PASCAL
  4688. DTLmapViewToc(
  4689. #ifdef use_prototypes
  4690. DtlViewId    vid
  4691. #endif
  4692. );
  4693.  
  4694. extern
  4695. DTL_EXPORT
  4696. int
  4697. OS_PASCAL
  4698. DTLunmapViewToc(
  4699. #ifdef use_prototypes
  4700. DtlViewId    vid
  4701. #endif
  4702. );
  4703.  
  4704. extern
  4705. DTL_EXPORT
  4706. int
  4707. OS_PASCAL
  4708. DTLraiseView(
  4709. #ifdef use_prototypes
  4710. DtlViewId    vid
  4711. #endif
  4712. );
  4713.  
  4714. extern
  4715. DTL_EXPORT
  4716. DtlGuiId
  4717. OS_PASCAL
  4718. DTLinqViewGUI(
  4719. #ifdef use_prototypes
  4720. DtlViewId    vid
  4721. #endif
  4722. );
  4723.  
  4724. extern 
  4725. DTL_EXPORT
  4726. int
  4727. OS_PASCAL
  4728. DTLsuggestViewGeometry(
  4729. #ifdef use_prototypes
  4730. DtlViewId    vid,
  4731. int    width,
  4732. int    height
  4733. #endif
  4734. );
  4735.  
  4736. extern
  4737. DTL_EXPORT
  4738. int
  4739. OS_PASCAL
  4740. DTLredrawView(
  4741. #ifdef use_prototypes
  4742. DtlViewId    vid
  4743. #endif
  4744. );
  4745.  
  4746. extern
  4747. DTL_EXPORT
  4748. int
  4749. OS_PASCAL
  4750. DTLrebuildView(
  4751. #ifdef use_prototypes
  4752. DtlViewId    vid
  4753. #endif
  4754. );
  4755.  
  4756. extern
  4757. DTL_EXPORT
  4758. int
  4759. OS_PASCAL
  4760. DTLmapAnnotWindow(
  4761. #ifdef use_prototypes
  4762. DtlViewId    vid
  4763. #endif
  4764. );
  4765.  
  4766. extern
  4767. DTL_EXPORT
  4768. int
  4769. OS_PASCAL
  4770. DTLunmapAnnotWindow(
  4771. #ifdef use_prototypes
  4772. DtlViewId    vid
  4773. #endif
  4774. );
  4775.  
  4776.  
  4777. /*** Action Routines ***/
  4778. extern
  4779. DTL_EXPORT
  4780. int
  4781. OS_PASCAL
  4782. DTLscrollView(
  4783. #ifdef use_prototypes
  4784. DtlViewId    vid,
  4785. unsigned long    element_id,
  4786. int        forward
  4787. #endif
  4788. );
  4789.  
  4790. extern
  4791. DTL_EXPORT
  4792. int
  4793. OS_PASCAL
  4794. DTLhscrollView(
  4795. #ifdef use_prototypes
  4796. DtlViewId       vid,
  4797. long            pos
  4798. #endif
  4799. );
  4800.  
  4801. extern
  4802. DTL_EXPORT
  4803. int
  4804. OS_PASCAL
  4805. DTLlaunchScript(
  4806. #ifdef use_prototypes
  4807. DtlViewId    vid,
  4808. unsigned long    element_id
  4809. #endif
  4810. );
  4811.  
  4812. extern
  4813. DTL_EXPORT
  4814. int
  4815. OS_PASCAL
  4816. DTLlaunchAnnot(
  4817. #ifdef use_prototypes
  4818. DtlViewId    vid,
  4819. unsigned long    element_id,
  4820. char    *title
  4821. #endif
  4822. );
  4823.  
  4824. extern
  4825. DTL_EXPORT
  4826. int
  4827. OS_PASCAL
  4828. DTLviewGoBack(
  4829. #ifdef use_prototypes
  4830. DtlViewId vid
  4831. #endif
  4832. );
  4833.  
  4834. extern
  4835. DTL_EXPORT
  4836. void
  4837. OS_PASCAL
  4838. DTLstartViewWait(
  4839. #ifdef use_prototypes
  4840. DtlViewId vid
  4841. #endif
  4842. );
  4843.  
  4844. extern
  4845. DTL_EXPORT
  4846. void
  4847. OS_PASCAL
  4848. DTLendViewWait(
  4849. #ifdef use_prototypes
  4850. DtlViewId vid
  4851. #endif
  4852. );
  4853.  
  4854.  
  4855. #ifdef DTL__SIT_DEFS
  4856.  
  4857. /*** Graphics Routines ***/
  4858.  
  4859. extern
  4860. DTL_EXPORT
  4861. int
  4862. OS_PASCAL
  4863. DTLperformViewQuery(
  4864. #ifdef use_prototypes
  4865. DtlViewId vid, 
  4866. char * query
  4867. #endif
  4868. );
  4869.  
  4870. extern
  4871. DTL_EXPORT
  4872. int
  4873. OS_PASCAL
  4874. DTLremoveViewScrollbars(
  4875. #ifdef use_prototypes
  4876. DtlViewId vid
  4877. #endif
  4878. );
  4879.  
  4880. extern
  4881. DTL_EXPORT
  4882. long
  4883. OS_PASCAL
  4884. DTLgetViewHorizPos(
  4885. #ifdef use_prototypes
  4886. DtlViewId vid
  4887. #endif
  4888. );
  4889.  
  4890.  
  4891. extern
  4892. DTL_EXPORT
  4893. long
  4894. OS_PASCAL
  4895. DTLgetViewHorizMax(
  4896. #ifdef use_prototypes
  4897. DtlViewId vid
  4898. #endif
  4899. );
  4900.  
  4901. extern
  4902. DTL_EXPORT
  4903. int
  4904. OS_PASCAL
  4905. DTLscrollViewUp(
  4906. #ifdef use_prototypes
  4907. DtlViewId vid
  4908. #endif
  4909. );
  4910.  
  4911. extern
  4912. DTL_EXPORT
  4913. int
  4914. OS_PASCAL
  4915. DTLscrollViewDown(
  4916. #ifdef use_prototypes
  4917. DtlViewId vid
  4918. #endif
  4919. );
  4920.  
  4921. extern
  4922. DTL_EXPORT
  4923. int
  4924. OS_PASCAL
  4925. DTLlineScrollViewUp(
  4926. #ifdef use_prototypes
  4927. DtlViewId vid
  4928. #endif
  4929. );
  4930.  
  4931. extern
  4932. DTL_EXPORT
  4933. int
  4934. OS_PASCAL
  4935. DTLlineScrollViewDown(
  4936. #ifdef use_prototypes
  4937. DtlViewId vid
  4938. #endif
  4939. );
  4940.  
  4941. #endif /* DTL__SIT_DEFS */
  4942.  
  4943.  
  4944. /*** Position Routines ***/
  4945. extern
  4946. DTL_EXPORT
  4947. int
  4948. OS_PASCAL
  4949. DTLreportTopPosition(
  4950. #ifdef use_prototypes
  4951. DtlViewId    vid,
  4952. unsigned long    *element_id,
  4953. char    attributes[],
  4954. int    attribute_max_length
  4955. #endif
  4956. );
  4957.  
  4958. extern
  4959. DTL_EXPORT
  4960. int
  4961. OS_PASCAL
  4962. DTLreportBottomPosition(
  4963. #ifdef use_prototypes
  4964. DtlViewId    vid,
  4965. unsigned long    *element_id,
  4966. char    attributes[],
  4967. int    attribute_max_length
  4968. #endif
  4969. );
  4970.  
  4971. extern
  4972. DTL_EXPORT
  4973. long
  4974. OS_PASCAL
  4975. DTLreportElementHeight(
  4976. #ifdef use_prototypes
  4977. DtlViewId vid, 
  4978. unsigned long eid, 
  4979. int w
  4980. #endif
  4981. );
  4982.  
  4983. extern
  4984. DTL_EXPORT
  4985. int
  4986. OS_PASCAL
  4987. DTLisElementVisible(
  4988. #ifdef use_prototypes
  4989. DtlViewId vid, 
  4990. unsigned long eid 
  4991. #endif
  4992. );
  4993.  
  4994. extern
  4995. DTL_EXPORT
  4996. int
  4997. OS_PASCAL
  4998. DTLreportViewElements(
  4999. #ifdef use_prototypes
  5000. DtlViewId vid, 
  5001. DtlElemGeom **geoms, 
  5002. long *num
  5003. #endif
  5004. );
  5005.  
  5006. extern
  5007. DTL_EXPORT
  5008. void
  5009. OS_PASCAL
  5010. DTLfreeElemGeoms(
  5011. #ifdef use_prototypes
  5012. DtlViewId vid, 
  5013. DtlElemGeom *geoms 
  5014. #endif
  5015. );
  5016.  
  5017. /*** Inquire Routines ***/
  5018. extern
  5019. DTL_EXPORT
  5020. DtlBookId
  5021. OS_PASCAL
  5022. DTLinqBook(
  5023. #ifdef use_prototypes
  5024. DtlViewId    vid
  5025. #endif
  5026. );
  5027.  
  5028. extern
  5029. DTL_EXPORT
  5030. unsigned long
  5031. OS_PASCAL
  5032. DTLinqRootElement(
  5033. #ifdef use_prototypes
  5034. DtlViewId    vid
  5035. #endif
  5036. );
  5037.  
  5038. extern
  5039. DTL_EXPORT
  5040. char *
  5041. OS_PASCAL
  5042. DTLinqViewName(
  5043. #ifdef use_prototypes
  5044. DtlViewId    vid
  5045. #endif
  5046. );
  5047.  
  5048.  
  5049. #ifdef DTL__SIT_DEFS
  5050.  
  5051.  
  5052. /*** View Inquiry Routines ***/
  5053. extern
  5054. DTL_EXPORT
  5055. DtlQueryId
  5056. OS_PASCAL
  5057. DTLinqViewQuery(
  5058. #ifdef use_prototypes
  5059. DtlViewId       vid
  5060. #endif
  5061. );
  5062.  
  5063.  
  5064. /*** Script Support Routines ***/
  5065.  
  5066. extern
  5067. DTL_EXPORT
  5068. void
  5069. OS_PASCAL
  5070. DTLremoveExref(
  5071. #ifdef use_prototypes
  5072. DtlViewId    vid,
  5073. DtlExrefId    exid
  5074. #endif
  5075. );
  5076.  
  5077. extern
  5078. DTL_EXPORT
  5079. int
  5080. OS_PASCAL
  5081. DTLaddViewCallback(
  5082. #ifdef use_prototypes
  5083. DtlViewId    vid,
  5084. int    which,
  5085. DtlViewCallbackProc    callback,
  5086. Up    user_data
  5087. #endif
  5088. );
  5089.  
  5090. extern
  5091. DTL_EXPORT
  5092. int
  5093. OS_PASCAL
  5094. DTLinqViewCallback(
  5095. #ifdef use_prototypes
  5096. DtlViewId        vid,
  5097. int            which,
  5098. DtlViewCallbackProc    *callback,
  5099. Up            *user_data
  5100. #endif
  5101. );
  5102.  
  5103. #endif /* DTL__SIT_DEFS */
  5104.  
  5105. extern
  5106. DTL_EXPORT
  5107. void
  5108. OS_PASCAL
  5109. DTLcloseAllExrefs(
  5110. #ifdef use_prototypes
  5111. DtlViewId    vid
  5112. #endif
  5113. );
  5114.  
  5115.  
  5116.  
  5117. /** Raster Prototypes
  5118. We specify the routines with a DTL raster object.
  5119. **/
  5120.  
  5121. #ifdef DTL__SIT_DEFS
  5122.  
  5123. /*** Main Routines ***/
  5124.  
  5125. /* PHASING OUT AFTER 2.0 */
  5126. extern
  5127. DTL_EXPORT
  5128. DtlRasterId
  5129. OS_PASCAL
  5130. DTLnewRaster(
  5131. #ifdef use_prototypes
  5132. DtlContextId    id,
  5133. char    *title
  5134. #endif
  5135. );
  5136.  
  5137.  
  5138. #ifdef DTL__X_DEFS
  5139.  
  5140. /* PHASING OUT AFTER 2.0 */
  5141. extern
  5142. DTL_EXPORT
  5143. DtlRasterId
  5144. OS_PASCAL
  5145. DTLnewRasterFromX(
  5146. #ifdef use_prototypes
  5147. DtlContextId    id,
  5148. Widget    parent
  5149. #endif
  5150. );
  5151.  
  5152.  
  5153. /* PHASING OUT AFTER 2.0 */
  5154. extern
  5155. DTL_EXPORT
  5156. Widget
  5157. OS_PASCAL
  5158. DTLinqRasterWidget(
  5159. #ifdef use_prototypes
  5160. DtlRasterId    rid
  5161. #endif
  5162. );
  5163.  
  5164. #endif /* DTL__X_DEFS */
  5165.  
  5166. #ifdef DTL__WINDOWS_DEFS
  5167.  
  5168. /* PHASING OUT AFTER 2.0 */
  5169. extern
  5170. DTL_EXPORT
  5171. DtlRasterId
  5172. OS_PASCAL
  5173. DTLnewRasterFromWindows(
  5174. #ifdef use_prototypes
  5175. DtlContextId    id,
  5176. HWND    parent
  5177. #endif
  5178. );
  5179.  
  5180.  
  5181. /* PHASING OUT AFTER 2.0 */
  5182. extern
  5183. DTL_EXPORT
  5184. HWND
  5185. OS_PASCAL
  5186. DTLinqRasterHWND(
  5187. #ifdef use_prototypes
  5188. DtlRasterId    rid
  5189. #endif
  5190. );
  5191.  
  5192. #endif /* DTL__WINDOWS_DEFS */
  5193.  
  5194.  
  5195. /* PHASING OUT AFTER 2.0 */
  5196. extern
  5197. DTL_EXPORT
  5198. int
  5199. OS_PASCAL
  5200. DTLloadRasterFile(
  5201. #ifdef use_prototypes
  5202. DtlRasterId    rid,
  5203. char    *path
  5204. #endif
  5205. );
  5206.  
  5207. /* PHASING OUT AFTER 2.0 */
  5208. extern
  5209. DTL_EXPORT
  5210. void
  5211. OS_PASCAL
  5212. DTLdestroyRaster(
  5213. #ifdef use_prototypes
  5214. DtlRasterId    rid
  5215. #endif
  5216. );
  5217.  
  5218.  
  5219. /*** Graphics Routines ***/
  5220.  
  5221. /* PHASING OUT AFTER 2.0 */
  5222. extern
  5223. DTL_EXPORT
  5224. int
  5225. OS_PASCAL
  5226. DTLmapRaster(
  5227. #ifdef use_prototypes
  5228. DtlRasterId    rid
  5229. #endif
  5230. );
  5231.  
  5232. /* PHASING OUT AFTER 2.0 */
  5233. extern
  5234. DTL_EXPORT
  5235. int
  5236. OS_PASCAL
  5237. DTLunmapRaster(
  5238. #ifdef use_prototypes
  5239. DtlRasterId    rid
  5240. #endif
  5241. );
  5242.  
  5243. /* PHASING OUT AFTER 2.0 */
  5244. extern
  5245. DTL_EXPORT
  5246. int
  5247. OS_PASCAL
  5248. DTLraiseRaster(
  5249. #ifdef use_prototypes
  5250. DtlRasterId    rid
  5251. #endif
  5252. );
  5253.  
  5254. /* PHASING OUT AFTER 2.0 */
  5255. extern
  5256. DTL_EXPORT
  5257. int
  5258. OS_PASCAL
  5259. DTLlowerRaster(
  5260. #ifdef use_prototypes
  5261. DtlRasterId    rid
  5262. #endif
  5263. );
  5264.  
  5265.  
  5266.  
  5267. /*** Pick Routines ***/
  5268. /* PHASING OUT AFTER 2.0 */
  5269. extern
  5270. DTL_EXPORT
  5271. int
  5272. OS_PASCAL
  5273. DTLaddRasterCallback(
  5274. #ifdef use_prototypes
  5275. DtlRasterId    rid,
  5276. int    which,
  5277. DtlRasterCallbackProc    callback,
  5278. Up    user_data
  5279. #endif
  5280. );
  5281.  
  5282. /* PHASING OUT AFTER 2.0 */
  5283. extern
  5284. DTL_EXPORT
  5285. int
  5286. OS_PASCAL
  5287. DTLhighlightRasterRegion(
  5288. #ifdef use_prototypes
  5289. DtlRasterId    rid,
  5290. int    x, 
  5291. int    y,
  5292. int    width, 
  5293. int    height
  5294. #endif
  5295. );
  5296.  
  5297. /* PHASING OUT AFTER 2.0 */
  5298. extern
  5299. DTL_EXPORT
  5300. int
  5301. OS_PASCAL
  5302. DTLunhighlightRasterRegion(
  5303. #ifdef use_prototypes
  5304. DtlRasterId    rid
  5305. #endif
  5306. );
  5307.  
  5308. #endif /* DTL__SIT_DEFS */
  5309.  
  5310.  
  5311. /** Graphics Prototypes
  5312. We specify the routines with a DTL graphics object.
  5313. **/
  5314.  
  5315.  
  5316. /*** Main Routines ***/
  5317.  
  5318. #ifdef DTL__SIT_DEFS
  5319.  
  5320. extern
  5321. DTL_EXPORT
  5322. DtlGraphicId
  5323. OS_PASCAL
  5324. DTLnewGraphicFromGUI(
  5325. #ifdef use_prototypes
  5326. DtlContextId    id,
  5327. DtlGuiId    parent,
  5328. int    gtype
  5329. #endif
  5330. );
  5331.  
  5332. extern
  5333. DTL_EXPORT
  5334. DtlGuiId
  5335. OS_PASCAL
  5336. DTLinqGraphicGUI(
  5337. #ifdef use_prototypes
  5338. DtlGraphicId    rid
  5339. #endif
  5340. );
  5341.  
  5342.  
  5343. #ifdef DTL__X_DEFS
  5344.  
  5345. /* PHASING OUT AFTER 2.0 */
  5346. extern
  5347. DTL_EXPORT
  5348. DtlGraphicId
  5349. OS_PASCAL
  5350. DTLnewGraphicFromX(
  5351. #ifdef use_prototypes
  5352. DtlContextId    id,
  5353. Widget    parent,
  5354. int    gtype
  5355. #endif
  5356. );
  5357.  
  5358.  
  5359. /* PHASING OUT AFTER 2.0 */
  5360. extern
  5361. DTL_EXPORT
  5362. Widget
  5363. OS_PASCAL
  5364. DTLinqGraphicWidget(
  5365. #ifdef use_prototypes
  5366. DtlGraphicId    rid
  5367. #endif
  5368. );
  5369.  
  5370. #endif /* DTL__X_DEFS */
  5371.  
  5372. #ifdef DTL__WINDOWS_DEFS
  5373.  
  5374. /* PHASING OUT AFTER 2.0 */
  5375. extern
  5376. DTL_EXPORT
  5377. DtlGraphicId
  5378. OS_PASCAL
  5379. DTLnewGraphicFromWindows(
  5380. #ifdef use_prototypes
  5381. DtlContextId    id,
  5382. HWND    parent,
  5383. int    gtype
  5384. #endif
  5385. );
  5386.  
  5387. /* PHASING OUT AFTER 2.0 */
  5388. extern
  5389. DTL_EXPORT
  5390. HWND
  5391. OS_PASCAL
  5392. DTLinqGraphicHWND(
  5393. #ifdef use_prototypes
  5394. DtlGraphicId    rid
  5395. #endif
  5396. );
  5397.  
  5398. #endif /* DTL__WINDOWS_DEFS */
  5399.  
  5400. #endif /* DTL__SIT_DEFS */
  5401.  
  5402. /*** Main Routines ***/
  5403.  
  5404. extern
  5405. DTL_EXPORT
  5406. DtlGraphicId
  5407. OS_PASCAL
  5408. DTLnewGraphic(
  5409. #ifdef use_prototypes
  5410. DtlContextId    id,
  5411. char    *title,
  5412. int    gtype
  5413. #endif
  5414. );
  5415.  
  5416. extern
  5417. DTL_EXPORT
  5418. int
  5419. OS_PASCAL
  5420. DTLloadGraphicFile(
  5421. #ifdef use_prototypes
  5422. DtlGraphicId    rid,
  5423. char    *path
  5424. #endif
  5425. );
  5426.  
  5427. extern
  5428. DTL_EXPORT
  5429. int
  5430. OS_PASCAL
  5431. DTLgraphicZoomToRegion(
  5432. #ifdef use_prototypes
  5433. DtlGraphicId    gid,
  5434. int    x,
  5435. int    y,
  5436. int    w,
  5437. int    h
  5438. #endif
  5439. );
  5440.  
  5441. extern
  5442. DTL_EXPORT
  5443. int
  5444. OS_PASCAL
  5445. DTLgraphicZoomToGraphicRegion(
  5446. #ifdef use_prototypes
  5447. DtlGraphicId    gid,
  5448. double x1,
  5449. double y1,
  5450. double x2,
  5451. double y2
  5452. #endif
  5453. );
  5454.  
  5455. extern
  5456. DTL_EXPORT
  5457. int
  5458. OS_PASCAL
  5459. DTLgraphicZoom(
  5460. #ifdef use_prototypes
  5461. DtlGraphicId    gid,
  5462. double    zf
  5463. #endif
  5464. );
  5465.  
  5466. extern
  5467. DTL_EXPORT
  5468. int
  5469. OS_PASCAL
  5470. DTLgraphicZoomReset(
  5471. #ifdef use_prototypes
  5472. DtlGraphicId    gid
  5473. #endif
  5474. );
  5475.  
  5476. extern
  5477. DTL_EXPORT
  5478. int
  5479. OS_PASCAL
  5480. DTLgetGraphicDimensions(
  5481. #ifdef use_prototypes
  5482. DtlGraphicId    rid,
  5483. int    *ww,
  5484. int    *hh               
  5485. #endif
  5486. );
  5487.  
  5488.  
  5489. extern
  5490. DTL_EXPORT
  5491. void
  5492. OS_PASCAL
  5493. DTLdestroyGraphic(
  5494. #ifdef use_prototypes
  5495. DtlGraphicId    rid
  5496. #endif
  5497. );
  5498.  
  5499. extern
  5500. DTL_EXPORT
  5501. int 
  5502. OS_PASCAL
  5503. DTLnormalizeGraphicCoords(
  5504. #ifdef use_prototypes
  5505. DtlGraphicId    rid,
  5506. int x,
  5507. int y,
  5508. double *normX,
  5509. double *normY
  5510. #endif
  5511. );
  5512.  
  5513. extern
  5514. DTL_EXPORT
  5515. int 
  5516. OS_PASCAL
  5517. DTLsetDefaultGraphicGeometry(
  5518. #ifdef use_prototypes
  5519. DtlGraphicId    rid, 
  5520. int             default_width, 
  5521. int             default_hgt
  5522. #endif
  5523. );
  5524.  
  5525. /*** Graphics coordinate transformations. ***/
  5526.  
  5527. extern
  5528. DTL_EXPORT
  5529. int 
  5530. OS_PASCAL
  5531. DTLgraphicCoordTransformGtoW(
  5532. #ifdef use_prototypes
  5533. DtlGraphicId    rid,
  5534. double xG,
  5535. double yG,
  5536. int *xW,
  5537. int *yW
  5538. #endif
  5539. );
  5540.  
  5541. extern
  5542. DTL_EXPORT
  5543. int 
  5544. OS_PASCAL
  5545. DTLgraphicCoordTransformWtoG(
  5546. #ifdef use_prototypes
  5547. DtlGraphicId    rid,
  5548. int xW,
  5549. int yW,
  5550. double *xG,
  5551. double *yG
  5552. #endif
  5553. );
  5554.  
  5555. extern
  5556. DTL_EXPORT
  5557. int 
  5558. OS_PASCAL
  5559. DTLgraphicCoordTransformGtoH(
  5560. #ifdef use_prototypes
  5561. DtlGraphicId    rid,
  5562. double xG,
  5563. double yG,
  5564. double *xH,
  5565. double *yH
  5566. #endif
  5567. );
  5568.  
  5569. extern
  5570. DTL_EXPORT
  5571. int 
  5572. OS_PASCAL
  5573. DTLgraphicCoordTransformHtoG(
  5574. #ifdef use_prototypes
  5575. DtlGraphicId    rid,
  5576. double xH,
  5577. double yH,
  5578. double *xG,
  5579. double *yG
  5580. #endif
  5581. );
  5582.  
  5583. extern
  5584. DTL_EXPORT
  5585. int 
  5586. OS_PASCAL
  5587. DTLgraphicWindowExtents(
  5588. #ifdef use_prototypes
  5589. DtlGraphicId    rid,
  5590. int *ulX,
  5591. int *ulY,
  5592. int *lrX,
  5593. int *lrY
  5594. #endif
  5595. );
  5596.  
  5597. extern
  5598. DTL_EXPORT
  5599. int 
  5600. OS_PASCAL
  5601. DTLgraphicVisibleGraphicExtents(
  5602. #ifdef use_prototypes
  5603. DtlGraphicId    rid,
  5604. double *ulX,
  5605. double *ulY,
  5606. double *lrX,
  5607. double *lrY
  5608. #endif
  5609. );
  5610.  
  5611. extern
  5612. DTL_EXPORT
  5613. int 
  5614. OS_PASCAL
  5615. DTLgraphicOverallGraphicExtents(
  5616. #ifdef use_prototypes
  5617. DtlGraphicId    rid,
  5618. double *ulX,
  5619. double *ulY,
  5620. double *lrX,
  5621. double *lrY
  5622. #endif
  5623. );
  5624.  
  5625.  
  5626. /*** Graphics Routines ***/
  5627.  
  5628. extern
  5629. DTL_EXPORT
  5630. int
  5631. OS_PASCAL
  5632. DTLmapGraphic(
  5633. #ifdef use_prototypes
  5634. DtlGraphicId    rid
  5635. #endif
  5636. );
  5637.  
  5638. extern
  5639. DTL_EXPORT
  5640. int
  5641. OS_PASCAL
  5642. DTLunmapGraphic(
  5643. #ifdef use_prototypes
  5644. DtlGraphicId    rid
  5645. #endif
  5646. );
  5647.  
  5648. extern
  5649. DTL_EXPORT
  5650. int
  5651. OS_PASCAL
  5652. DTLraiseGraphic(
  5653. #ifdef use_prototypes
  5654. DtlGraphicId    rid
  5655. #endif
  5656. );
  5657.  
  5658. extern
  5659. DTL_EXPORT
  5660. int
  5661. OS_PASCAL
  5662. DTLlowerGraphic(
  5663. #ifdef use_prototypes
  5664. DtlGraphicId    rid
  5665. #endif
  5666. );
  5667.  
  5668.  
  5669. extern
  5670. DTL_EXPORT
  5671. int
  5672. OS_PASCAL
  5673. DTLenableGraphic(
  5674. #ifdef use_prototypes
  5675. DtlGraphicId   rid,
  5676. int            on_or_off
  5677. #endif           
  5678. );
  5679.  
  5680. extern
  5681. DTL_EXPORT
  5682. int
  5683. OS_PASCAL
  5684. DTLremoveGraphicScrollbars(
  5685. #ifdef use_prototypes
  5686. DtlGraphicId gid
  5687. #endif
  5688. );
  5689.  
  5690.  
  5691. /*** Pick Routines ***/
  5692.  
  5693. #ifdef DTL__SIT_DEFS
  5694.  
  5695. extern
  5696. DTL_EXPORT
  5697. int
  5698. OS_PASCAL
  5699. DTLaddGraphicCallback(
  5700. #ifdef use_prototypes
  5701. DtlGraphicId    rid,
  5702. int    which,
  5703. DtlGraphicCallbackProc    callback,
  5704. Up    user_data
  5705. #endif
  5706. );
  5707.  
  5708. extern
  5709. DTL_EXPORT
  5710. int
  5711. OS_PASCAL
  5712. DTLinqGraphicCallback(
  5713. #ifdef use_prototypes
  5714. DtlGraphicId        rid,
  5715. int            which,
  5716. DtlGraphicCallbackProc    *callback,
  5717. Up            *user_data
  5718. #endif
  5719. );
  5720.  
  5721. #endif /* DTL__SIT_DEFS */
  5722.  
  5723. extern
  5724. DTL_EXPORT
  5725. int
  5726. OS_PASCAL
  5727. DTLhighlightGraphicRegion(
  5728. #ifdef use_prototypes
  5729. DtlGraphicId    rid,
  5730. int    x, 
  5731. int    y,
  5732. int    width, 
  5733. int    height
  5734. #endif
  5735. );
  5736.  
  5737. extern
  5738. DTL_EXPORT
  5739. int
  5740. OS_PASCAL
  5741. DTLunhighlightGraphicRegion(
  5742. #ifdef use_prototypes
  5743. DtlGraphicId    rid
  5744. #endif
  5745. );
  5746.  
  5747.  
  5748.  
  5749. /** Utility System Prototypes
  5750. We specify the DTL utility routines.
  5751. **/
  5752.  
  5753. extern
  5754. DTL_EXPORT
  5755. char *
  5756. OS_PASCAL
  5757. DTLparseAttribute(
  5758. #ifdef use_prototypes
  5759. DtlContextId    id,
  5760. char    *string,
  5761. char    *aname,
  5762. char     vbuf[],
  5763. int    buf_size
  5764. #endif
  5765. );
  5766.  
  5767.  
  5768. /* PHASING OUT AFTER 2.0 */
  5769. #define DTLgetAttribute(a,b,c,d,e) DTLparseAttribute(a,b,c,d,e)
  5770.  
  5771.  
  5772. extern
  5773. DTL_EXPORT
  5774. unsigned long
  5775. OS_PASCAL
  5776. DTLgetElement(
  5777. #ifdef use_prototypes
  5778. DtlBookId    bid,
  5779. char    *aname,
  5780. char    *aval
  5781. #endif
  5782. );
  5783.  
  5784. extern 
  5785. DTL_EXPORT
  5786. DtlBookId
  5787. OS_PASCAL
  5788. DTLgetBook(
  5789. #ifdef use_prototypes
  5790. DtlContextId id, 
  5791. char *dbase, 
  5792. char *book_name
  5793. #endif
  5794. );
  5795.  
  5796. extern 
  5797. DTL_EXPORT
  5798. DtlViewId
  5799. OS_PASCAL
  5800. DTLgetView(
  5801. #ifdef use_prototypes
  5802. DtlContextId id, 
  5803. char *dbase, 
  5804. char *book_name, 
  5805. char *view_name, 
  5806. unsigned long root
  5807. #endif
  5808. );
  5809.  
  5810.  
  5811. extern 
  5812. DTL_EXPORT
  5813. DtlTocViewId
  5814. OS_PASCAL
  5815. DTLgetTocView(
  5816. #ifdef use_prototypes
  5817. DtlContextId id, 
  5818. char *dbase, 
  5819. char *book_name, 
  5820. char *view_name, 
  5821. unsigned long root
  5822. #endif
  5823. );
  5824.  
  5825. /** Plugin Support Routines 
  5826. **/
  5827.  
  5828. extern
  5829. DTL_EXPORT
  5830. int
  5831. OS_PASCAL
  5832. DTLpluginInit(
  5833. #ifdef use_prototypes
  5834.         DtlPluginInfoId pluginInfoId,
  5835.         char *pluginList,
  5836.         char *pluginDirs          
  5837. #endif
  5838. );
  5839.  
  5840. extern
  5841. DTL_EXPORT
  5842. int
  5843. OS_PASCAL
  5844. DTLpluginAdd(
  5845. #ifdef use_prototypes
  5846.         DtlPluginInfoId pluginInfoId,
  5847.         char *path,
  5848.         char *init,
  5849.     char *destroy
  5850. #endif
  5851. );
  5852.  
  5853. extern
  5854. DTL_EXPORT
  5855. int
  5856. OS_PASCAL
  5857. DTLpluginSetDestroyCallback(
  5858. #ifdef use_prototypes
  5859.         DtlPluginId plugin,
  5860.     Up destroy
  5861. #endif
  5862. );
  5863.  
  5864. extern
  5865. DTL_EXPORT
  5866. Up
  5867. OS_PASCAL
  5868. DTLpluginInqDestroyCallback(
  5869. #ifdef use_prototypes
  5870.         DtlPluginId plugin
  5871. #endif
  5872. );
  5873.  
  5874. extern
  5875. DTL_EXPORT
  5876. int
  5877. OS_PASCAL
  5878. DTLsetMaxFds(
  5879. #ifdef use_prototypes
  5880.        DtlContextId contextId, 
  5881.     int maxFds
  5882. #endif
  5883. );
  5884.  
  5885. /** Locale and Conversion routines
  5886. **/
  5887.  
  5888. extern
  5889. DTL_EXPORT
  5890. void
  5891. OS_PASCAL
  5892. DTLunicode2native(
  5893. #ifdef use_prototypes
  5894. UCSchar16 *unicode,
  5895. char *native,
  5896. size_t numChars
  5897. #endif
  5898. );
  5899.  
  5900. extern
  5901. DTL_EXPORT
  5902. void
  5903. OS_PASCAL
  5904. DTLunicode2multibyte(
  5905. #ifdef use_prototypes
  5906. UCSchar16 *unicode, 
  5907. char *multibyte,    
  5908. char *encodingName,
  5909. size_t numChars
  5910. #endif
  5911. );
  5912.  
  5913. extern
  5914. DTL_EXPORT
  5915. void
  5916. OS_PASCAL
  5917. DTLnative2unicode(
  5918. #ifdef use_prototypes
  5919. char *native,
  5920. UCSchar16 *unicode,
  5921. size_t numUCSchar16s
  5922. #endif
  5923. );
  5924.  
  5925. extern
  5926. DTL_EXPORT
  5927. void
  5928. OS_PASCAL
  5929. DTLmultibyte2unicode(
  5930. #ifdef use_prototypes
  5931. char *multibyte, 
  5932. UCSchar16 *unicode, 
  5933. char *encodingName,
  5934. size_t numUCSchar16s
  5935. #endif
  5936. );
  5937.  
  5938. extern
  5939. DTL_EXPORT
  5940. int
  5941. OS_PASCAL
  5942. DTLunicodeLength(
  5943. #ifdef use_prototypes
  5944. UCSchar16 * unicode
  5945. #endif
  5946. );
  5947.  
  5948. extern
  5949. DTL_EXPORT
  5950. int
  5951. OS_PASCAL
  5952. DTLnativeMaxPerChar(
  5953. #ifdef use_prototypes
  5954. #endif
  5955. );
  5956.  
  5957. extern
  5958. DTL_EXPORT
  5959. int
  5960. OS_PASCAL
  5961. DTLmultibyteMaxPerChar(
  5962. #ifdef use_prototypes
  5963. char *encodingName
  5964. #endif
  5965. );
  5966.  
  5967. extern
  5968. DTL_EXPORT
  5969. char *
  5970. OS_PASCAL
  5971. DTLgetLocale(
  5972. #ifdef use_prototypes
  5973. #endif
  5974. );
  5975.  
  5976. extern
  5977. DTL_EXPORT
  5978. void *
  5979. OS_PASCAL
  5980. DTLinqBookInternal(
  5981. #ifdef use_prototypes
  5982. DtlBookId dtlBookId,
  5983. char *internalDataMember
  5984. #endif
  5985. );
  5986.  
  5987. extern
  5988. DTL_EXPORT
  5989. void *
  5990. OS_PASCAL
  5991. DTLinqContextInternal(
  5992. #ifdef use_prototypes
  5993. DtlContextId contextId,
  5994. char *internalDataMember
  5995. #endif
  5996. );
  5997.  
  5998. #ifdef DTL__WINDOWS_DEFS
  5999.  
  6000. extern
  6001. DTL_EXPORT
  6002. HANDLE
  6003. OS_PASCAL
  6004. DTLdllInqHINSTANCE(
  6005. #ifdef use_prototypes
  6006. #endif
  6007. );
  6008.  
  6009. extern
  6010. DTL_EXPORT
  6011. int
  6012. OS_PASCAL
  6013. DTLdllInqRefcount(
  6014. #ifdef use_prototypes
  6015. #endif
  6016. );
  6017.  
  6018. #endif /* DTL__WINDOWS_DEFS */
  6019.  
  6020. /*** DTLNODE functions ***/
  6021.  
  6022. extern
  6023. DTL_EXPORT
  6024. int
  6025. OS_PASCAL
  6026. DTLNODEisBefore(
  6027. #ifdef use_prototypes
  6028. DtlBookId bid,
  6029. unsigned long eid1,
  6030. unsigned long eid2
  6031. #endif
  6032. );
  6033.  
  6034. extern
  6035. DTL_EXPORT
  6036. int
  6037. OS_PASCAL
  6038. DTLNODEisAfter(
  6039. #ifdef use_prototypes
  6040. DtlBookId bid,
  6041. unsigned long eid1,
  6042. unsigned long eid2
  6043. #endif
  6044. );
  6045.  
  6046. extern
  6047. DTL_EXPORT
  6048. int
  6049. OS_PASCAL
  6050. DTLNODEisEqual(
  6051. #ifdef use_prototypes
  6052. DtlBookId bid,
  6053. unsigned long eid1,
  6054. unsigned long eid2
  6055. #endif
  6056. );
  6057.  
  6058. extern
  6059. DTL_EXPORT
  6060. int
  6061. OS_PASCAL
  6062. DTLNODEisParent(
  6063. #ifdef use_prototypes
  6064. DtlBookId bid,
  6065. unsigned long eid1,
  6066. unsigned long eid2
  6067. #endif
  6068. );
  6069.  
  6070. extern
  6071. DTL_EXPORT
  6072. int
  6073. OS_PASCAL
  6074. DTLNODEisChild(
  6075. #ifdef use_prototypes
  6076. DtlBookId bid,
  6077. unsigned long eid1,
  6078. unsigned long eid2
  6079. #endif
  6080. );
  6081.  
  6082. extern
  6083. DTL_EXPORT
  6084. int
  6085. OS_PASCAL
  6086. DTLNODEisAncestor(
  6087. #ifdef use_prototypes
  6088. DtlBookId bid,
  6089. unsigned long eid1,
  6090. unsigned long eid2
  6091. #endif
  6092. );
  6093.  
  6094. extern
  6095. DTL_EXPORT
  6096. int
  6097. OS_PASCAL
  6098. DTLNODEisDescendant(
  6099. #ifdef use_prototypes
  6100. DtlBookId bid,
  6101. unsigned long eid1,
  6102. unsigned long eid2
  6103. #endif
  6104. );
  6105.  
  6106. extern
  6107. DTL_EXPORT
  6108. int
  6109. OS_PASCAL
  6110. DTLNODEisSibling(
  6111. #ifdef use_prototypes
  6112. DtlBookId bid,
  6113. unsigned long eid1,
  6114. unsigned long eid2
  6115. #endif
  6116. );
  6117.  
  6118. extern
  6119. DTL_EXPORT
  6120. int
  6121. OS_PASCAL
  6122. DTLNODEwEid2name(
  6123. #ifdef use_prototypes
  6124. DtlBookId bid,
  6125. unsigned long eid,
  6126. int persistence_level,
  6127. UCSchar16* name,
  6128. int maxbuf
  6129. #endif
  6130. );
  6131.  
  6132. extern
  6133. DTL_EXPORT
  6134. int
  6135. OS_PASCAL
  6136. DTLNODEeid2name(
  6137. #ifdef use_prototypes
  6138. DtlBookId bid,
  6139. unsigned long eid,
  6140. int persistence_level,
  6141. char* name,
  6142. int maxbuf
  6143. #endif
  6144. );
  6145.  
  6146. extern
  6147. DTL_EXPORT
  6148. unsigned long
  6149. OS_PASCAL
  6150. DTLNODEname2eid(
  6151. #ifdef use_prototypes
  6152. DtlBookId bid,
  6153. char* name
  6154. #endif
  6155. );
  6156.  
  6157. extern
  6158. DTL_EXPORT
  6159. unsigned long
  6160. OS_PASCAL
  6161. DTLNODEwName2eid(
  6162. #ifdef use_prototypes
  6163. DtlBookId bid,
  6164. UCSchar16 *name
  6165. #endif
  6166. );
  6167.  
  6168. extern
  6169. DTL_EXPORT
  6170. unsigned long
  6171. OS_PASCAL
  6172. DTLNODEeid2globalNumber(
  6173. #ifdef use_prototypes
  6174. DtlBookId bid,unsigned long eid
  6175. #endif
  6176. );
  6177.  
  6178. extern
  6179. DTL_EXPORT
  6180. unsigned long
  6181. OS_PASCAL
  6182. DTLNODEglobalNumber2eid(
  6183. #ifdef use_prototypes
  6184. DtlBookId bid,
  6185. unsigned long global
  6186. #endif
  6187. );
  6188.  
  6189. extern
  6190. DTL_EXPORT
  6191. int
  6192. OS_PASCAL
  6193. DTLNODEnameLength(
  6194. #ifdef use_prototypes
  6195. char* name
  6196. #endif
  6197. );
  6198.  
  6199. extern
  6200. DTL_EXPORT
  6201. int
  6202. OS_PASCAL
  6203. DTLNODEwNameLength(
  6204. #ifdef use_prototypes
  6205. UCSchar16* name
  6206. #endif
  6207. );
  6208.  
  6209. extern
  6210. DTL_EXPORT
  6211. char *
  6212. OS_PASCAL
  6213. DTLgetExePath();
  6214.  
  6215. extern
  6216. DTL_EXPORT
  6217. char *
  6218. OS_PASCAL
  6219. DTLgetIniFilePath(
  6220. #ifdef use_prototypes
  6221. const char *szIniFilename
  6222. #endif
  6223. );
  6224.  
  6225. extern
  6226. DTL_EXPORT
  6227. void
  6228. OS_PASCAL
  6229. DTLfree(
  6230. #ifdef use_prototypes
  6231. char *ptr
  6232. #endif
  6233. );
  6234.  
  6235. /* If your SIT application does use threading, we recommend you call 
  6236.    DTLinit(???) before calling any other DTL function to allow for 
  6237.    as many threads as you may use */
  6238. extern
  6239. DTL_EXPORT
  6240. Boolean
  6241. OS_PASCAL
  6242. DTLinit(
  6243. #ifdef use_prototypes
  6244. int allowedNumberOfThreads
  6245. #endif
  6246. );
  6247.  
  6248. extern
  6249. DTL_EXPORT
  6250. int
  6251. OS_PASCAL
  6252. DTLreloadBookStyleSheets(
  6253. #ifdef use_prototypes
  6254. DtlBookId bid
  6255. #endif
  6256. );
  6257.  
  6258. enum {
  6259.    DTL__PERSISTENCE_NEW_BOOK,
  6260.    DTL__PERSISTENCE_RESTART,
  6261.    DTL__PERSISTENCE_EDIT
  6262. };
  6263.  
  6264.  
  6265.  
  6266. #ifdef __cplusplus
  6267. }
  6268. #endif /* __cplusplus */
  6269.  
  6270. #endif /* DTL_HEADER */
  6271.